Originally posted by: bindasmariner
I am new to python/cplex and having a hard time coding my complicated MILP in this platform.
Can anyone please show me the python code for writing such an MILP in python API of Cplex. I have shown a small part, but explaining this much would guide me enough
Variable: X, Z are Binary and Q,l are Continuous.
Coefficients marked bold.
minimize sum(v in V, p in S1, q in S2)
Cost_pqv * X_pqv
+ sum(p in S1, v in V, k in K)
Cost1_pvk * Q_pvk
1) sum(q in S)X_qv + Z_v = 0, for all v in V
2) l_pvk + Q_qvk - l_qvk = 0, for all v in V,k in K, p,q in S
Thanks in anticipation
Saurabh
#CPLEXOptimizers#DecisionOptimization