Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Dec 7, 2024
1 parent 1d786b6 commit 1951846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <cmath>
#include "PrimalDualInteriorPointMethod.hpp"
#include "PrimalDualInteriorPointProblem.hpp"
#include "ingredients/hessian_models/HessianModelFactory.hpp"
#include "linear_algebra/SparseStorageFactory.hpp"
#include "linear_algebra/SymmetricIndefiniteLinearSystem.hpp"
#include "solvers/DirectSymmetricIndefiniteLinearSolver.hpp"
Expand Down Expand Up @@ -212,7 +211,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
1 change: 0 additions & 1 deletion uno/solvers/MA27/MA27Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ namespace uno {
icntl[eICNTL::LDIAG] = 0;
}


void MA27Solver::do_symbolic_analysis(const SymmetricMatrix<size_t, double>& matrix) {
assert(matrix.dimension() <= iw1.capacity() && "MA27Solver: the dimension of the matrix is larger than the preallocated size");
assert(matrix.number_nonzeros() <= irn.capacity() &&
Expand Down

0 comments on commit 1951846

Please sign in to comment.