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

org.opt4j.tutorial.optimizer.MutateOptimizerModule Maven / Gradle / Ivy

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy