| 17 | } |
| 18 | |
| 19 | uno_int objective_gradient(uno_int /*number_variables*/, const double* x, double* gradient, void* /*user_data*/) { |
| 20 | gradient[0] = 400.*pow(x[0], 3.) - 400.*x[0]*x[1] + 2.*x[0] - 2.; |
| 21 | gradient[1] = 200.*(x[1] - pow(x[0], 2.)); |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | uno_int jacobian(uno_int /*number_variables*/, uno_int /*number_jacobian_nonzeros*/, const double* x, |
| 26 | double* jacobian_values, void* /*user_data*/) { |
nothing calls this directly
no outgoing calls
no test coverage detected