All Questions
3 questions
0
votes
2
answers
3k
views
How is an if statement possible with decision variables in CPLEX
How can I formulate my model that it undertakes a maintenance at 450 and a cleaning at 150?
forall(w in W, t in T, s in S, p in P, m in M)
(450<=hub[m][w][t][s])<=(b_maint[w][m][t][s]==...
4
votes
1
answer
5k
views
Building a linear program in Python with Cplex
I'm trying to solve a linear program with large number of variables and constraints. I need to dynamically generate the constraint matrices and build the lp in python. The only tutorial i can find on ...
3
votes
2
answers
4k
views
How to get number of constraints from Cplex
I have a long program that I've written in C++ and I'm using ILOG Cplex12.5 Solver to solve it.
How can I get total the number of constraints? Is there a function for it?