Class GraphTCSPSolver

java.lang.Object
edu.fiu.jtlex.algorithms.GraphTCSPSolver
All Implemented Interfaces:
IGraphTCSPSolver

public class GraphTCSPSolver extends Object implements IGraphTCSPSolver
Solver of a TCSP that is created from a graph.
Since:
jTLEX 1.0
  • Constructor Details

    • GraphTCSPSolver

      public GraphTCSPSolver()
      Creates a new instance
  • Method Details

    • solve

      public List<org.jacop.core.IntVar> solve(ITimeMLGraphTCSP problem)
      Solves the given problem using minimum selection strategy.
      Specified by:
      solve in interface IGraphTCSPSolver
      Parameters:
      problem - The problem to solve
      Returns:
      The solution to the problem
      Throws:
      NullPointerException - If the problem is null
      Since:
      jTLEX 1.0
    • solveRandom

      public List<org.jacop.core.IntVar> solveRandom(ITimeMLGraphTCSP problem)
      Solves a problem using random selection strategy.
      Specified by:
      solveRandom in interface IGraphTCSPSolver
      Parameters:
      problem - The problem to solve
      Returns:
      The solution to the problem
      Throws:
      NullPointerException - If the problem is null
      Since:
      jTLEX 1.0
    • convertSolutionToString

      public List<String> convertSolutionToString(List<org.jacop.core.IntVar> solution)
      Converts the given solution into its string representation
      Specified by:
      convertSolutionToString in interface IGraphTCSPSolver
      Parameters:
      solution - The solution to convert
      Returns:
      A string representation of the solution
      Throws:
      NullPointerException - If the solution is null
      Since:
      jTLEX 1.0