Skip to content

Commit 03ed0a6

Browse files
committed
Fix behavior when user data trace is not saved
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.
1 parent c9b4bc0 commit 03ed0a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/run_design_optimization.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@
208208
% Output data trace if necessary
209209
if store_user_data_trace
210210
outputs = tmp_outputs;
211+
else
212+
outputs = [];
211213
end
212214

213215
end

0 commit comments

Comments
 (0)