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

Method evaluate_jacobian

interfaces/AMPL/AMPLModel.cpp:199–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void AMPLModel::evaluate_jacobian(const Vector<double>& x, double* jacobian_values) const {
200 fint error_flag = 0;
201 this->asl->p.Jacval(this->asl, const_cast<double*>(x.data()), jacobian_values, &error_flag);
202 if (0 < error_flag) {
203 throw GradientEvaluationError();
204 }
205 ++this->number_model_evaluations.jacobian;
206 }
207
208 // register the vector of variables
209 //this->asl->p.Xknown(this->asl, const_cast<double*>(x.data()), nullptr);

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45

Tested by

no test coverage detected