FRAMES NO FRAMES

IloStoreBestSolution

public IlcGoal IloStoreBestSolution(IloSolver solver, IloSolution solution)
public IloGoal IloStoreBestSolution(IloEnv env, IloSolution solution)
Definition file: ilsolver/ilosolverint.h
Include file: <ilsolver/ilosolver.h>

This function returns a goal which stores solution using solution.store(solver), if the value of the objective of solution is worse than the currently instantiated value. What is considered “worse” depends on the sense of the objective added to solution.

For more information, see IloSolution.

See Also: