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

Method evaluate_constraints

uno/optimization/OptimizationProblem.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void OptimizationProblem::evaluate_constraints(const Iterate& iterate, double* constraints, Evaluations& evaluations) const {
74 evaluations.evaluate_constraints(this->model, iterate.primals);
75 for (size_t index: Range(this->number_constraints)) {
76 constraints[index] = evaluations.constraints[index];
77 }
78 }
79
80 // warning: adds to objective_gradient (objective_gradient must be reset prior, if necessary)
81 void OptimizationProblem::evaluate_objective_gradient(const Iterate& iterate, double* objective_gradient, Evaluations& evaluations) const {

Callers 1

Calls 1

RangeClass · 0.85

Tested by

no test coverage detected