org.ojalgo.optimisation.linear.network
Class NetworkModel
java.lang.Object
org.ojalgo.optimisation.ModelEntity<org.ojalgo.optimisation.AbstractModel>
org.ojalgo.optimisation.ConstraintsBasedModel<Node,NetworkModel>
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
NetworkModel
public NetworkModel(Node[] someConstraints)
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)