org.opt4j.tutorial.optimizer.MutateOptimizerModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opt4j-tutorial Show documentation
Show all versions of opt4j-tutorial Show documentation
The tutorial classes for Opt4J
package org.opt4j.tutorial.optimizer;
import org.opt4j.core.config.annotations.Parent;
import org.opt4j.core.optimizer.MaxIterations;
import org.opt4j.core.optimizer.OptimizerModule;
import org.opt4j.tutorial.TutorialModule;
@Parent(TutorialModule.class)
public class MutateOptimizerModule extends OptimizerModule {
@MaxIterations
protected int iterations = 1000;
public int getIterations() {
return iterations;
}
public void setIterations(int iterations) {
this.iterations = iterations;
}
@Override
public void config() {
bindIterativeOptimizer(MutateOptimizer.class);
}
}