Package isula.aco
Class MatrixEnvironment
java.lang.Object
isula.aco.Environment
isula.aco.MatrixEnvironment
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double[][]
Creates a pheromone matrix depending of the nature of the problem to solve.double[][]
protected boolean
Verifies if the problem graph matrix provided is valid.toString()
Methods inherited from class isula.aco.Environment
applyFactorToPheromoneMatrix, getPheromoneMatrix, populatePheromoneMatrix, setPheromoneMatrix
-
Constructor Details
-
MatrixEnvironment
- Throws:
InvalidInputException
-
-
Method Details
-
isProblemRepresentationValid
protected boolean isProblemRepresentationValid()Verifies if the problem graph matrix provided is valid. By default this method returns true: override if necessary.- Returns:
- True if valid, false otherwise.
-
getProblemRepresentation
public double[][] getProblemRepresentation() -
createPheromoneMatrix
protected double[][] createPheromoneMatrix()Description copied from class:Environment
Creates a pheromone matrix depending of the nature of the problem to solve. When overriding this method, you can call getProblemRepresentation() to obtain problem context information.- Specified by:
createPheromoneMatrix
in classEnvironment
- Returns:
- Pheromone matrix instance.
-
toString
-