Skip to content

Commit

Permalink
save infeasible x0s to fix table size
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccamccabe committed Feb 3, 2025
1 parent 4b373e7 commit f60f14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdocean/optimization/sensitivities/gradient_mult_x0.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
for i = 2:num_runs
[x0_vec,x0] = random_x0(b);
[~, ~, feasible_lin] = is_feasible(0, x0_vec, p, b);
x0s(i) = x0;
if feasible_lin
x0s(i) = x0;
[X_opt(i,:,:), objs(i,:), flags(i,:)] = gradient_optim(x0,p,b);
end
end
Expand Down

0 comments on commit f60f14e

Please sign in to comment.