Skip to content

Commit

Permalink
The Hessian should be evaluated after the first derivatives
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Dec 6, 2024
1 parent a720716 commit b283b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uno/solvers/BQPD/BQPDSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ namespace uno {
DEBUG << "QP:\n";
DEBUG << "Hessian: " << hessian_model.hessian;
}
this->set_up_subproblem(problem, current_iterate, initial_point, trust_region_radius, warmstart_information);
if (warmstart_information.objective_changed || warmstart_information.constraints_changed) {
hessian_model.evaluate(statistics, problem, current_iterate.primals, current_multipliers);
this->save_hessian_to_local_format(hessian_model.hessian);
}
this->set_up_subproblem(problem, current_iterate, initial_point, trust_region_radius, warmstart_information);
this->solve_subproblem(problem, initial_point, direction, warmstart_information);
}

Expand Down

0 comments on commit b283b52

Please sign in to comment.