FRAMES NO FRAMES

IloDestroyAll

public IloPoolProc IloDestroyAll(IloEnv env)
Definition file: ilsolver/iimiloproc.h
Include file: <ilsolver/iim.h>
Creates a processor which destroys supplied pool elements.

This function creates a processor which destroys supplied pool elements in the allocation environment env.

The following code shows a replacement goal where the entire population is destroyed and replaced by the contents of the offspring pool:

    // Replace the entire population with offspring
    IloGoal replacementGoal =
      IloExecuteProcessor(env, population >> IloDestroyAll(env)) &&
      IloExecuteProcessor(env, offspring >> population);