Package isula.aco

Class MatrixEnvironment

java.lang.Object
isula.aco.Environment
isula.aco.MatrixEnvironment

public class MatrixEnvironment extends Environment
  • Constructor Details

  • 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 class Environment
      Returns:
      Pheromone matrix instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object