Optim_Siman_Best_Solution_Revert_Notify_Proc_Set()
Abstract
Registers a procedure to be called when the working solution reverts to the best solution.
Syntax
Optim_Siman_Best_Solution_Revert_Notify_Proc_Set (optim_handle, revert_proc)
| Argument | Type | Description |
|---|---|---|
optim_handle |
OptimT_Siman_Handle |
The optimization engine instance that is reverting to the best solution. |
revert_proc |
OptimT_Siman_Best_Solution_Revert_Notify_Proc | Procedure to call. |
Return Type
void
No return value.
Header
optim_siman.h
Details
By default, only the accept procedure (a callback of type OptimT_Siman_Mutation_Accept_Notify_Proc) is called when the optimization engine decides to use the best-so-far solution. However, if the client uses this function to register a “revert” procedure, revert_proc will be called also, in case the client wants to perform additional operations (such as handling the change in the solution states from the current solution state to the best-so-far solution).