Skip to content

Commit

Permalink
Fix behavior when user data trace is not saved
Browse files Browse the repository at this point in the history
Previously, if the user data trace was not being saved, the output was not returned at all in the objective function. This caused the BayesOpt to run the objective function once, just to figure out how many outputs it gives. Now the objective function provides the user data output in either case, but it is empty if we don't want to store it.
  • Loading branch information
fmelinscak committed Feb 15, 2019
1 parent c9b4bc0 commit 03ed0a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/run_design_optimization.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@
% Output data trace if necessary
if store_user_data_trace
outputs = tmp_outputs;
else
outputs = [];
end

end
Expand Down

0 comments on commit 03ed0a6

Please sign in to comment.