OptimT_Siman_Objective_Value_Proc
Abstract
Callback: Takes a problem state and a solution state and returns the objective value of the solution state.
Syntax
<objective_value_proc_name> (problem_state_ptr, solution_state_ptr)
| Argument | Type | Description |
|---|---|---|
problem_state_ptr |
void * |
The same problem state that the optimization engine instance issuing the call was initialized with. |
solution_state_ptr |
void * |
The current solution state whose objective value is to be calculated. |
Return Type
double
The objective value of the solution_state_ptr argument.
Header
optim_siman.h
Details
A callback of this type must take in a problem state and a solution state and return the objective value of the solution state. It can return OPTIMC_SIMAN_INFINITY if a given solution is not valid or otherwise should be considered to have an infinite objective value.