IBM ILOG Solver User's Manual > Local Search > Basic Local Search > Example: Using metaheuristics > Creating the first solution |
Creating the first solution |
INDEX
![]() |
Now, we create the first solution (11
):
IloSolver solver(mdl); IloGoal store = IloStoreSolution(env, soln); IloGoal firstSol = IloAddConstraint(a[0] == 1) && IloAddConstraint(a[1] == 1) && store; solver.solve(firstSol); |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |