Format for the user-supplied subroutine that computes the objective function for a general (non least-squares) optimization problem.
More...
Format for the user-supplied subroutine that computes the objective function for a general (non least-squares) optimization problem.
- Parameters
-
N_parameters | The number of independent variables, i.e. the dimension of the search space. |
state_vector | An array of size N_parameters containing the values of the indpendent variables. |
objective_value | The subroutine must set this variable to the value of the objective function. |
failed | Set the value pointed to by this variable to 1 if the calculation of the objective function fails for some reason. Otherwise the value should be 0. |
problem | A pointer to the class representing this optimization problem. This pointer can be useful for getting information about the MPI communicators. |
user_data | Pointer to user-supplied data, which can be set by mango_set_user_data(). |
Definition at line 314 of file mango.F90.
◆ objective_function_interface()
subroutine mango_mod::objective_function_interface::objective_function_interface |
( |
integer(c_int), intent(in) |
N_parameters, |
|
|
real(c_double), dimension(n_parameters), intent(in) |
state_vector, |
|
|
real(c_double), intent(out) |
objective_value, |
|
|
integer(c_int), intent(out) |
failed, |
|
|
type(mango_problem), intent(in), value |
problem, |
|
|
type(c_ptr), intent(in), value |
user_data |
|
) |
| |
The documentation for this interface was generated from the following file:
- /home/runner/work/mango/mango/src/api/mango.F90