Skip to content

Commit

Permalink
fixed wrapper override of the plotting function when full output is r…
Browse files Browse the repository at this point in the history
…equested, ref #110
  • Loading branch information
Emmanuel Benazera committed Feb 13, 2015
1 parent 736a179 commit b40b168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esostrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace libcmaes
* variable values for each step until termination.
* @param pffunc a stream to file output function
*/
void set_plot_func(PlotFunc<TParameters,TSolutions> &pffunc) { _pffunc = pffunc; }
void set_plot_func(PlotFunc<TParameters,TSolutions> &pffunc) { if (!_parameters._full_fplot) _pffunc = pffunc; }

/**
* \brief returns numerical gradient of objective function at x.
Expand Down

0 comments on commit b40b168

Please sign in to comment.