FRAMES NO FRAMES

IloSource

public IloPoolOperator IloSource(IloEnv env, IloGoal goal, IloSolution prototype, const char * name=0)
Definition file: ilsolver/iimoperator.h
Include file: <ilsolver/iim.h>
Creates a solution source from a goal and a solution prototype.

This function creates an operator which executes the supplied goal goal and will store solutions according to the prototype prototype passed. It is most useful for creating a set of solutions at the head of a processor chain where no input solutions are present to be used as prototypes. name, if provided, becomes the name of the new operator.

IloPoolOperator op = IloSource(goal.getEnv(), goal, prototype) is short for:

   IloPoolOperator op(goal);
   op.setPrototype(prototype);
 
Note
To produce a variety of solutions, goal should be non-deterministic, either by nature or by intentionally perturbing using, for example, IloRandomPerturbation.

See Also: