|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mascoptCplex.algos.abstractalgos.AddFlowRouting
Field Summary | |
static double |
EPSILON
The epsilon error when computing flow and searching for paths |
static String |
FLOW_ALLOCATED
The string which is used to store the number of lambdas on a path. |
String |
FORBIDEN_EDGE
The string which is used to forbid an edge. |
boolean |
integerComputation_
Choice of the type of variables. |
static int |
MAX_FLOW_PER_REQUEST
|
static String |
REQUEST_SIZE
The string which is used when searching for the size of request. |
Constructor Summary | |
AddFlowRouting(AbstractGraph g,
ArcSet requests,
ilog.cplex.IloCplex cplex,
boolean integerComputation)
Constructs the AddFlowRouting object. |
|
AddFlowRouting(AbstractGraph g,
DiGraph requests,
ilog.cplex.IloCplex cplex,
boolean integerComputation)
Constructs the AddFlowRouting object. |
Method Summary | |
void |
createFlow()
Add a flow system on the network. |
AbstractPath |
getChain(Arc r)
Returns the chain with the computed flow. |
double |
getDouFlowEdge(AbstractEdge e)
Give the value representing the total flow on an arc. |
double |
getDouVarEdgeReq(AbstractEdge e,
Arc r)
Give the value representing the flow on an arc and for a request r. |
ilog.concert.IloLinearNumExpr |
getFlowEdge(AbstractEdge e)
Give the variable representing the total flow on an arc. |
AbstractPathSet |
getSingleChains(Arc r)
Returns single chains with the computed flow. |
ilog.concert.IloNumVar |
getVarEdgeReq(AbstractEdge e,
Arc r)
Give the variable representing the flow on an arc and for a request r. |
void |
useLinearNumExprAsRequests(HashMap correspondance)
Use this Cplex linear numerical expression as request instead of fixed values. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int MAX_FLOW_PER_REQUEST
public String FORBIDEN_EDGE
public static String REQUEST_SIZE
public static double EPSILON
public static String FLOW_ALLOCATED
public boolean integerComputation_
Constructor Detail |
public AddFlowRouting(AbstractGraph g, ArcSet requests, ilog.cplex.IloCplex cplex, boolean integerComputation)
g
- the graph used for the routing.requests
- the requests arc set on the graph.cplex
- the cplex object where to put constraints.public AddFlowRouting(AbstractGraph g, DiGraph requests, ilog.cplex.IloCplex cplex, boolean integerComputation)
g
- the graph used for the routing.requests
- the requests graph on the graph.cplex
- the cplex object where to put constraints.Method Detail |
public void createFlow()
public ilog.concert.IloNumVar getVarEdgeReq(AbstractEdge e, Arc r)
e
- the edge considered.r
- the request considered.
public double getDouVarEdgeReq(AbstractEdge e, Arc r)
e
- the edge considered.r
- the request considered.
public ilog.concert.IloLinearNumExpr getFlowEdge(AbstractEdge e)
e
- the edge considered.
public double getDouFlowEdge(AbstractEdge e)
e
- the edge considered.
public AbstractPath getChain(Arc r)
r
- the request to satisfy.
public AbstractPathSet getSingleChains(Arc r)
r
- the request to satisfy.
public void useLinearNumExprAsRequests(HashMap correspondance)
correspondance
- the HashMap containing each request and the corresponding
IloLinearNumExpr.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |