Package edu.fiu.jtlex.algorithms
Class GraphTCSPSolver
java.lang.Object
edu.fiu.jtlex.algorithms.GraphTCSPSolver
- All Implemented Interfaces:
IGraphTCSPSolver
Solver of a TCSP that is created from a graph.
- Since:
- jTLEX 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertSolutionToString
(List<org.jacop.core.IntVar> solution) Converts the given solution into its string representationList<org.jacop.core.IntVar>
solve
(ITimeMLGraphTCSP problem) Solves the given problem using minimum selection strategy.List<org.jacop.core.IntVar>
solveRandom
(ITimeMLGraphTCSP problem) Solves a problem using random selection strategy.
-
Constructor Details
-
GraphTCSPSolver
public GraphTCSPSolver()Creates a new instance
-
-
Method Details
-
solve
Solves the given problem using minimum selection strategy.- Specified by:
solve
in interfaceIGraphTCSPSolver
- Parameters:
problem
- The problem to solve- Returns:
- The solution to the problem
- Throws:
NullPointerException
- If the problem is null- Since:
- jTLEX 1.0
-
solveRandom
Solves a problem using random selection strategy.- Specified by:
solveRandom
in interfaceIGraphTCSPSolver
- Parameters:
problem
- The problem to solve- Returns:
- The solution to the problem
- Throws:
NullPointerException
- If the problem is null- Since:
- jTLEX 1.0
-
convertSolutionToString
Converts the given solution into its string representation- Specified by:
convertSolutionToString
in interfaceIGraphTCSPSolver
- Parameters:
solution
- The solution to convert- Returns:
- A string representation of the solution
- Throws:
NullPointerException
- If the solution is null- Since:
- jTLEX 1.0
-