net.sourceforge.cilib.coevolution.cooperative.contextupdate.ContextUpdateStrategy Maven / Gradle / Ivy
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.coevolution.cooperative.contextupdate;
import net.sourceforge.cilib.coevolution.cooperative.ContextEntity;
import net.sourceforge.cilib.coevolution.cooperative.CooperativeCoevolutionAlgorithm;
import net.sourceforge.cilib.coevolution.cooperative.problem.DimensionAllocation;
import net.sourceforge.cilib.type.types.container.Vector;
import net.sourceforge.cilib.util.Cloneable;
/**
* This interface is used to update the context vector of a {@linkplain CooperativeCoevolutionAlgorithm}
* with the best solution from a participating {@linkplain PopulationBasedAlgorithm}.
*/
public interface ContextUpdateStrategy extends Cloneable {
/**
* Decide if the given solution should be added to the given context vector.
* @param context The current context vector.
* @param solution The new participant solution.
* @param allocation The {@linkplain DimensionAllocation} which indicates how the solution
* vector forms part of the context.
*/
void updateContext(ContextEntity context, Vector solution, DimensionAllocation allocation);
/**
* {@inheritDoc}
*/
@Override
ContextUpdateStrategy getClone();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy