| 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, |
nothing calls this directly
no test coverage detected