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

Method evaluate_jacobian

uno/optimization/OptimizationProblem.cpp:88–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void OptimizationProblem::evaluate_jacobian(const Vector<double>& primals, double* jacobian_values, Evaluations& evaluations) const {
89 evaluations.evaluate_jacobian(this->model, primals);
90 for (size_t nonzero_index: Range(this->model.number_jacobian_nonzeros())) {
91 jacobian_values[nonzero_index] = evaluations.jacobian_values[nonzero_index];
92 }
93 }
94
95 // Lagrangian gradient ∇f(x_k) - ∇c(x_k) y_k - z_k
96 void OptimizationProblem::evaluate_lagrangian_gradient(const Iterate& iterate, Evaluations& evaluations,

Callers

nothing calls this directly

Calls 2

RangeClass · 0.85

Tested by

no test coverage detected