mascoptCplex.algos.abstractalgos
Class AddFlowRoutingConstrains

java.lang.Object
  |
  +--mascoptCplex.algos.abstractalgos.AddFlowRouting
        |
        +--mascoptCplex.algos.abstractalgos.AddFlowRoutingConstrains

public class AddFlowRoutingConstrains
extends AddFlowRouting

Author:
fpeix

Field Summary
 
Fields inherited from class mascoptCplex.algos.abstractalgos.AddFlowRouting
EPSILON, FLOW_ALLOCATED, FORBIDEN_EDGE, integerComputation_, MAX_FLOW_PER_REQUEST, REQUEST_SIZE
 
Constructor Summary
AddFlowRoutingConstrains(AbstractGraph g, ArcSet requests, ilog.cplex.IloCplex cplex, boolean integerComputation)
          Constructor
 
Method Summary
 void constrainsFlowMaxPerRequests()
          Add the constraint on the flow per request passing on each arc
 AbstractPathSet getRequestPaths(Arc requests)
          Give the set of paths corresponding to one request
 void setMaxFlowPerRequests(double value)
          Set the maximun flow on each arc per request
 
Methods inherited from class mascoptCplex.algos.abstractalgos.AddFlowRouting
createFlow, getChain, getDouFlowEdge, getDouVarEdgeReq, getFlowEdge, getSingleChains, getVarEdgeReq, useLinearNumExprAsRequests
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddFlowRoutingConstrains

public AddFlowRoutingConstrains(AbstractGraph g,
                                ArcSet requests,
                                ilog.cplex.IloCplex cplex,
                                boolean integerComputation)
Constructor

Parameters:
g - The graph used for the routing.
requests - The requests arc set on the graph.
cplex - The cplex object where to put constraints.
integerComputation - The computation mode.
Method Detail

setMaxFlowPerRequests

public void setMaxFlowPerRequests(double value)
Set the maximun flow on each arc per request

Parameters:
value - Maximun value of flow on each arc per request

constrainsFlowMaxPerRequests

public void constrainsFlowMaxPerRequests()
Add the constraint on the flow per request passing on each arc


getRequestPaths

public AbstractPathSet getRequestPaths(Arc requests)
Give the set of paths corresponding to one request

Parameters:
requests - The requests
Returns:
The Set of Path corresponding to the request requests