MCPcopy Create free account
hub / github.com/cvanaret/Uno / initialize_memory

Method initialize_memory

uno/ingredients/subproblem_solvers/EQPSolver.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19
20 void EQPSolver::initialize_memory(const Subproblem& subproblem) {
21 if (!subproblem.has_hessian_matrix()) {
22 throw std::runtime_error("The subproblem does not have an explicit Hessian matrix and cannot be solved with a direct linear solver");
23 }
24 // access the linear system of the linear solver
25 auto& linear_system = this->linear_solver->get_linear_system();
26 linear_system.initialize_augmented_system(subproblem);
27 this->linear_solver->initialize_memory();
28 }
29
30 void EQPSolver::solve(Statistics& statistics, const Subproblem& subproblem, double trust_region_radius,
31 const Vector<double>& /*initial_point*/, Direction& direction, Evaluations& current_evaluations,

Callers

nothing calls this directly

Calls 2

has_hessian_matrixMethod · 0.45

Tested by

no test coverage detected