All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opt4j.tutorial.salesman.SalesmanModule Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show 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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy