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