Skip to content

Commit

Permalink
Fixes #870 constant term not added to objective with baron
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlofberg committed Apr 23, 2021
1 parent 44f8a0b commit 54b8290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solvers/callbaron.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if nnz(model.Q)>0
obj = [obj '+' createQstring(model.Q,model)];
end
if model.f > 0
if any(model.f) > 0
obj = [obj '+' num2str(model.f)];
end
obj = baronify(obj);
Expand Down

0 comments on commit 54b8290

Please sign in to comment.