Class TSPRandomConstructive

java.lang.Object
es.urjc.etsii.grafo.create.Constructive<TSPSolution,TSPInstance>
es.urjc.etsii.grafo.TSP.algorithms.constructives.TSPRandomConstructive

public class TSPRandomConstructive extends Constructive<TSPSolution,TSPInstance>
  • Constructor Details

    • TSPRandomConstructive

      public TSPRandomConstructive()
  • Method Details

    • construct

      public TSPSolution construct(TSPSolution solution)
      Description copied from class: Constructive
      Build a solution. Start with an empty solution, end when the solution is valid.
      Specified by:
      construct in class Constructive<TSPSolution,TSPInstance>
      Parameters:
      solution - Empty solution, the result of calling the constructor.
      Returns:
      A valid solution that fulfills all the problem constraints.