Package net.sourceforge.cilib.problem.changestrategy

Dynamic environments need to know when it should be applicable to change the problem.

See:
          Description

Interface Summary
ChangeStrategy Interface used to determine if change operations should be applied to the current problem.
 

Class Summary
IterationBasedChangeStrategy An IterationBasedChangeStrategy is a test to ensure that a problem is altered or changed at a predefined frequency.
NoChangeStrategy Environmental change strategy for problems that does not allow a change to occur.
 

Package net.sourceforge.cilib.problem.changestrategy Description

Dynamic environments need to know when it should be applicable to change the problem.

Various strategies exist to do this, but for CIlib the simple process to enable this is to implement the ChangeStrategy and attach it to the problem.

ChangeStrategy classes implement a simple boolean function which determines if a change should occur or not.

ChangeStrategy classes are used as follows:

 if (changeStrategy.shouldApply(problem))
     problem.changeEnvironment();
 



Copyright © 2009 CIRG. All Rights Reserved.