FRAMES NO FRAMES

IlcBestGenerate

public IlcGoal IlcBestGenerate(const IlcIntVarArray, IlcChooseIntIndex chooseVariable=IlcChooseFirstUnboundInt)
public IlcGoal IlcBestGenerate(const IlcAnyVarArray array, IlcChooseAnyIndex chooseVariable=IlcChooseFirstUnboundAny)
public IlcGoal IlcBestGenerate(const IlcAnyVarArray array, IlcChooseAnyIndex chooseVariable, IlcAnySelect select)
public IlcGoal IlcBestGenerate(const IlcIntVarArray, IlcChooseIntIndex chooseVariable, IlcIntSelect select)
public IlcGoal IlcBestGenerate(const IlcAnySetVarArray array, IlcChooseAnySetIndex chooseVariable=IlcChooseFirstUnboundAnySet)
public IlcGoal IlcBestGenerate(const IlcAnySetVarArray array, IlcChooseAnySetIndex chooseVariable, IlcAnySetSelect select)
public IlcGoal IlcBestGenerate(const IlcIntSetVarArray array, IlcChooseIntSetIndex chooseVariable=IlcChooseFirstUnboundIntSet)
public IlcGoal IlcBestGenerate(const IlcIntSetVarArray array, IlcChooseIntSetIndex chooseVariable, IlcIntSetSelect select)
public IlcGoal IlcBestGenerate(const IlcFloatVarArray array, IlcChooseFloatIndex chooseIndex, IlcBool increaseMinFirst=IlcTrue, IlcFloat prec=0)
Definition file: ilsolver/ilcint.h
Include file: <ilsolver/ilosolver.h>

Solver provides an enumeration algorithm with parameters that can be set for choosing the order in which variables are tried during the search for a solution. That enumeration algorithm is implemented by the functions IlcBestGenerate and IlcGenerate.

This goal binds each constrained variable in its argument array; it does so by calling the function IlcBestInstantiate for each of them. The order in which the variables are bound is controlled by the function chooseIndex. The argument select is passed to each call to IlcBestInstantiate, if that argument is provided.

This goal differs from IlcGenerate since it calls IlcBestInstantiate which tries only one value.

See Also: