| 5 | #include "uno/Uno_C_API.h" |
| 6 | |
| 7 | uno_int objective_function(uno_int /*number_variables*/, const double* x, double* objective_value, void* /*user_data*/) { |
| 8 | *objective_value = 100.*pow(x[1] - pow(x[0], 2.), 2.) + pow(1. - x[0], 2.); |
| 9 | return 0; |
| 10 | } |
| 11 | |
| 12 | uno_int constraint_functions(uno_int /*number_variables*/, uno_int /*number_constraints*/, const double* x, |
| 13 | double* constraint_values, void* /*user_data*/) { |
nothing calls this directly
no outgoing calls
no test coverage detected