Enum NetworkSimplex.SolutionStatus
java.lang.Object
java.lang.Enum<NetworkSimplex.SolutionStatus>
org.graphstream.algorithm.networksimplex.NetworkSimplex.SolutionStatus
- All Implemented Interfaces:
Serializable
,Comparable<NetworkSimplex.SolutionStatus>
,java.lang.constant.Constable
- Enclosing class:
- NetworkSimplex
public static enum NetworkSimplex.SolutionStatus extends Enum<NetworkSimplex.SolutionStatus>
The status of the current solution.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description INFEASIBLE
The problem is infeasible, some of the supply/demand constraints cannot be satisfied.OPTIMAL
The problem is feasible and bounded.UNBOUNDED
The problem is unbounded (this happens when the graph contains an uncapacitated negative cost cycle).UNDEFINED
The current solution is outdated. -
Method Summary
Modifier and Type Method Description static NetworkSimplex.SolutionStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkSimplex.SolutionStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNDEFINED
The current solution is outdated. This is the value when the graph has changed since the last call ofNetworkSimplex.compute()
-
OPTIMAL
The problem is feasible and bounded. The current solution is up to date and optimal. -
INFEASIBLE
The problem is infeasible, some of the supply/demand constraints cannot be satisfied. The current solution is up to date. -
UNBOUNDED
The problem is unbounded (this happens when the graph contains an uncapacitated negative cost cycle). The current solution is up to date.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-