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

io.github.ericmedvet.jgea.experimenter.Run Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
package io.github.ericmedvet.jgea.experimenter;

import io.github.ericmedvet.jgea.core.QualityBasedProblem;
import io.github.ericmedvet.jgea.core.listener.Listener;
import io.github.ericmedvet.jgea.core.solver.AbstractPopulationBasedIterativeSolver;
import io.github.ericmedvet.jgea.core.solver.SolverException;
import io.github.ericmedvet.jgea.core.solver.state.POSetPopulationState;
import io.github.ericmedvet.jnb.core.Param;
import io.github.ericmedvet.jnb.core.ParamMap;

import java.util.Collection;
import java.util.concurrent.ExecutorService;
import java.util.random.RandomGenerator;

/**
 * @author "Eric Medvet" on 2022/09/01 for 2d-robot-evolution
 */
public record Run

, G, S, Q>( @Param(value = "", injection = Param.Injection.INDEX) int index, @Param("name") String name, @Param("solver") AbstractPopulationBasedIterativeSolver, P, G, S, Q> solver, @Param("problem") P problem, @Param("randomGenerator") RandomGenerator randomGenerator, @Param(value = "", injection = Param.Injection.MAP_WITH_DEFAULTS) ParamMap map ) { public Collection run( ExecutorService executorService, Listener> listener ) throws SolverException { return solver.solve( problem, randomGenerator, executorService, listener ); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy