Skip to content

Commit

Permalink
fix LP style initialization (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
goulart-paul authored Aug 30, 2023
1 parent 857ae9a commit 457e603
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver/implementations/default/kktsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ where
if data.P.nnz() == 0 {
// LP initialization

// solve with [0;b] as a RHS to get (x,s) initializers
// solve with [0;b] as a RHS to get (x,-s) initializers
// zero out any sparse cone variables at end
self.workx.fill(T::zero());
self.workz.copy_from(&data.b);
Expand All @@ -219,6 +219,7 @@ where
Some(&mut variables.s),
settings.core(),
);
variables.s.negate();

// solve with [-c;0] as a RHS to get z initializer
// zero out any sparse cone variables at end
Expand Down

0 comments on commit 457e603

Please sign in to comment.