| IBM ILOG Solver User's Manual > More on Modeling > Reducing Symmetry: Configuring Racks > Solve |
Solve |
INDEX
PREVIOUS
NEXT
|
To search for a solution, you instantiate the type of each rack using IloInstantiate and generate the counters of each rack using IloGenerate. Counters with the smallest domain are bound first. The function Generate searches for a solution.
IloGoal goal = IloGoalTrue(env); for(i=0;i<nbRack;i++){ goal = goal && IloInstantiate(env, racks[i]->_type); goal = goal && IloGenerate(env, racks[i]->_counters); } |
This goal is used in the main function like this:
| © Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |