org.ojalgo.optimisation.linear.network
Class NetworkModel

java.lang.Object
  extended by org.ojalgo.optimisation.ModelEntity<org.ojalgo.optimisation.AbstractModel>
      extended by org.ojalgo.optimisation.ConstraintsBasedModel<Node,NetworkModel>
          extended by org.ojalgo.optimisation.linear.network.NetworkModel
All Implemented Interfaces:
Comparable<org.ojalgo.optimisation.AbstractModel>, OptimisationModel

public final class NetworkModel
extends ConstraintsBasedModel<Node,NetworkModel>

NetworkModel

Author:
apete

Constructor Summary
NetworkModel(Node[] someConstraints)
           
 
Method Summary
 Arc add(String identifier, String aSourceNodeName, String aDestinationNodeName)
           
 OptimisationSolver getDefaultSolver()
          No need to implement an OptimisationModel if there is not at least one matching OptimisationSolver.
 Node getNode(String aName)
           
 Collection<Node> getNodes()
           
 boolean isMaximisation()
           
 boolean isMinimisation()
           
 BigDecimal maximise()
           
 BigDecimal minimise()
           
 void setMaximisation(boolean aFlag)
           
 void setMinimisation(boolean aFlag)
           
 
Methods inherited from class org.ojalgo.optimisation.ConstraintsBasedModel
validateComposition, validateSolution, validateSolution
 
Methods inherited from class org.ojalgo.optimisation.ModelEntity
compareTo, equals, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkModel

public NetworkModel(Node[] someConstraints)
Method Detail

add

public Arc add(String identifier,
               String aSourceNodeName,
               String aDestinationNodeName)

getDefaultSolver

public OptimisationSolver getDefaultSolver()
Description copied from interface: OptimisationModel
No need to implement an OptimisationModel if there is not at least one matching OptimisationSolver.


getNode

public Node getNode(String aName)

getNodes

public Collection<Node> getNodes()

maximise

public BigDecimal maximise()

minimise

public BigDecimal minimise()

isMaximisation

public final boolean isMaximisation()

isMinimisation

public final boolean isMinimisation()

setMaximisation

public final void setMaximisation(boolean aFlag)

setMinimisation

public final void setMinimisation(boolean aFlag)