org.graphstream.algorithm.networksimplex
Enum NetworkSimplex.SolutionStatus

java.lang.Object
  extended by java.lang.Enum<NetworkSimplex.SolutionStatus>
      extended by org.graphstream.algorithm.networksimplex.NetworkSimplex.SolutionStatus
All Implemented Interfaces:
Serializable, Comparable<NetworkSimplex.SolutionStatus>
Enclosing class:
NetworkSimplex

public static enum NetworkSimplex.SolutionStatus
extends Enum<NetworkSimplex.SolutionStatus>

The status of the current solution.


Enum Constant Summary
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
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, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final NetworkSimplex.SolutionStatus UNDEFINED
The current solution is outdated. This is the value when the graph has changed since the last call of NetworkSimplex.compute()


OPTIMAL

public static final NetworkSimplex.SolutionStatus OPTIMAL
The problem is feasible and bounded. The current solution is up to date and optimal.


INFEASIBLE

public static final NetworkSimplex.SolutionStatus INFEASIBLE
The problem is infeasible, some of the supply/demand constraints cannot be satisfied. The current solution is up to date.


UNBOUNDED

public static final NetworkSimplex.SolutionStatus UNBOUNDED
The problem is unbounded (this happens when the graph contains an uncapacitated negative cost cycle). The current solution is up to date.

Method Detail

values

public static NetworkSimplex.SolutionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NetworkSimplex.SolutionStatus c : NetworkSimplex.SolutionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetworkSimplex.SolutionStatus valueOf(String name)
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 name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.