The State type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | State()()()() |
Constructor for the initial state, starting at the node 1.
|
![]() | State(Int32) |
Constructor for the initial state.
|
![]() | State(State, Int32, Int32) |
Constructor used at the Branch method.
|
Methods
Name | Description | |
---|---|---|
![]() | Branch |
Branchs this node.
Also sets the State.BestValue and State.BestSolution variables if arrive to such situation in the branch call.
And also do a pasive Prune, i.e; it doesn't add childs worst than the State.BestSolution state.
|
![]() | CompareTo(Object) |
Compare this State with the specified.
|
![]() | CompareTo(State) |
Compare this State with the specified.
Used at PriorityQueue.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Permite que un objeto Object intente liberar recursos y realizar otras operaciones de limpieza antes de que el objeto Object sea reclamado por el recolector de elementos no utilizados. (Inherited from Object.) |
![]() | fx |
Cost function for a possible child node.
It takes into account the possible next weight in the path.
|
![]() | GetHashCode | Actúa como función hash para un tipo concreto. (Inherited from Object.) |
![]() | GetPathValue |
Gets the total weight of the current path for this state. (Real value of fitness function).
Use only this functions in strange situations, not branching.
|
![]() | GetType | Obtiene el objeto Type de la instancia actual. (Inherited from Object.) |
![]() | MemberwiseClone | Crea una copia superficial del objeto Object actual. (Inherited from Object.) |
![]() | PathContainsNode |
Gets a value indicating if in the current path exists a node with the specified id.
|
![]() |
Print at the console the string representation for this State.
| |
![]() | ToString |
Gets the String representation for this State.
(Overrides Object..::..ToString()()()().) |
Fields
Name | Description | |
---|---|---|
![]() ![]() | BestSolution |
State representing the best solution reached
|
![]() ![]() | BestValue |
The best value reached
|
![]() | k |
Size of the path
|
![]() ![]() | N |
Number of Nodes in the Graph.
|
![]() ![]() | NbPruned |
Current number of pruned States.
|
![]() | path |
The path for this state
|
![]() ![]() | TheGraph |
Common instance of the Graph been used by all the States.
|
![]() | value |
Function value for this State
|