org.opt4j.tutorial.salesman.SalesmanModule 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
The newest version!
package org.opt4j.tutorial.salesman;
import org.opt4j.core.config.annotations.Parent;
import org.opt4j.core.problem.ProblemModule;
import org.opt4j.core.start.Constant;
import org.opt4j.tutorial.TutorialModule;
@Parent(TutorialModule.class)
public class SalesmanModule extends ProblemModule {
@Constant(value = "size")
protected int size = 100;
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public void config() {
bindProblem(SalesmanCreator.class, SalesmanDecoder.class, SalesmanEvaluator.class);
}
}