Package org.ddolib.examples.nolayer.tsp
Class TSPState
java.lang.Object
org.ddolib.examples.nolayer.tsp.TSPState
Represents a state in the Traveling Salesman Problem (TSP) for nolayer models.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
toVisit
Set of nodes that have not been visited yet. -
current
Current node(s). Usually a singleton, but can be multiple in merged states.
-
-
Constructor Details
-
TSPState
Constructs a new TSPState.- Parameters:
current- the current node(s)toVisit- the nodes that have not yet been visited
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
singleton
Creates a BitSet containing only the specified singleton value.- Parameters:
singletonValue- the value to set- Returns:
- a BitSet with a single bit set
-
toString
-