Skip to content

Commit

Permalink
Fixed assert
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Dec 8, 2024
1 parent 4fe4bad commit 0043e8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ namespace uno {

// check the inertia
[[maybe_unused]] auto [number_pos_eigenvalues, number_neg_eigenvalues, number_zero_eigenvalues] = this->linear_solver->get_inertia();
assert(number_pos_eigenvalues == number_variables && number_neg_eigenvalues == number_constraints && number_zero_eigenvalues == 0);
assert(number_pos_eigenvalues == problem.number_variables && number_neg_eigenvalues == problem.number_constraints
&& number_zero_eigenvalues == 0);

// rhs
this->assemble_augmented_rhs(problem, current_multipliers);
Expand Down

0 comments on commit 0043e8e

Please sign in to comment.