All Questions
8 questions
0
votes
1
answer
51
views
Cplex: how to display this linear program in Cplex
enter image description here
How do i write this constraints in CPLEX (linear-program)?
∑ j∈M until ∑ k=i xaijk ∗ bkj = dai, ∀i ∈ N, ∀a ∈ B ∩ A1; until = min(i + va, n)
0
votes
1
answer
475
views
CPLEX - adding min in constraints & how to write sum with different values
I am new to this platform CPLEX which means a beginner of programming.
I'm trying to write the code for CPLEX for below questions.
Question 1.
∑j (X^D(i,j,t) <= min(k^P(i,t),k^A(i,t) for all i, t
...
1
vote
1
answer
676
views
Python/CPLEX "inconsistent arguments" error
I am trying to solve the following simple LP problem using CPLEX in Jupyter based Python and get the following error.
Can anybody please help to interpret the error. The LP problem has 6 vars and 3 ...
-1
votes
1
answer
429
views
ILOG CPLEX: Constraint assigning a decision variable in specific order
In CPLEX I built the attached model which I want to use for locating products to locations. The constraint that tries to order the allocation of products to locations in ascending order Stackingorder[...
2
votes
2
answers
1k
views
Linear programming two sets of constraints CPLEX Python API
I am trying to solve a linear programming problem using IBM's CPLEX Python API. It involves two sets of equality constraints. The code below works fine when we use either one of the two sets of ...
0
votes
1
answer
2k
views
Using arrays in range for CPLEX OPL
{int} t1 = {1,2,3};
{int} t2 = {4,5,6};
range t= t1..t2;
C[t4] >= sum (d in d) d * task[t4][d];
Basically I want to use specific values for each t1 t2 t3. I want my range between t1 and ...
0
votes
1
answer
1k
views
Giving Priority sequence to Constraints in Gurobi/Cplex (Linear programming)
I am working on Business Problem for factory and developing Linear programming Solution. problem has thousands of Constraints and variables. I want to give priority sequence to constraints so that ...
0
votes
0
answers
176
views
Cplex Syntax to model a proportion constraint
I am having difficulty with the syntax (and possibly logic) of modelling a proportion constraint in Cplex:
Here is the content of my .dat file:
nPaper = 3;
nWoods = 3;
SalesPrice = [60, 75, 40];
...