mascoptCplex.algos.abstractalgos
Class AddFlowRoutingConstrains
java.lang.Object
|
+--mascoptCplex.algos.abstractalgos.AddFlowRouting
|
+--mascoptCplex.algos.abstractalgos.AddFlowRoutingConstrains
- public class AddFlowRoutingConstrains
- extends AddFlowRouting
- Author:
- fpeix
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.
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