Skip to content

Commit

Permalink
Wrong fix in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Löfberg committed May 26, 2024
1 parent 0fd2c02 commit 7c4cbcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/global/presolve_implied_from_SDP.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function p = addImpliedSDP(p)
function p = presolve_implied_from_SDP(p)
if p.feasible && nnz(p.K.q)==0 && nnz(p.K.e)==0 && nnz(p.K.s) > 0
% Search for rows where there is a constant, and a diagonal term
% which thus has to be strictly positive, we might leads us to a
Expand Down Expand Up @@ -67,10 +67,10 @@
top = top + p.K.s(j)^2;
end
for i = (find(~isnan(fixable)))
if fixable(i) == 1 && ~isinf(p.ub(candidates(fixable(i))))
p.lb(candidates(fixable(i))) = p.ub(candidates(fixable(i)));
p.F_struc(4,1+candidates(fixable(i))) = 0;
elseif fixable(i) == -1 && ~isinf(p.lb(candidates(fixable(i))))
if fixable(i) == 1 && ~isinf(p.ub(candidates((i))))
p.lb(candidates((i))) = p.ub(candidates((i)));
p.F_struc(4,1+candidates((i))) = 0;
elseif fixable(i) == -1 && ~isinf(p.lb(candidates((i))))
p.ub(candidates(i)) = p.lb(candidates((i)));
p.F_struc(4,1+candidates(i))= 0;
end
Expand Down

0 comments on commit 7c4cbcc

Please sign in to comment.