Skip to main content

Questions tagged [opl]

OPL is a modeling language for mathematical programming and combinatorial optimization problems. It is the first modeling language to combine high-level algebraic and set notations from modeling languages with a rich constraint language and the ability to specify search procedures and strategies that is the essence of constraint programming.

Filter by
Sorted by
Tagged with
3 votes
4 answers
575 views

Book recommendations on OPL

Are there any good books that teach how to work with OPL in CPLEX? I searched but I didn't find any.
Emad's user avatar
  • 183
3 votes
1 answer
722 views

CPLEX oplrun says the problem size has exceeded, but then proceeds to solve the problem anyway

I have downloaded and installed the CPLEX Studio Community Edition 20.1.0.0 on my Linux machine (KUbuntu). I want to use the oplrun tool directly from the terminal. ...
Davi Doro's user avatar
  • 141
2 votes
1 answer
51 views

Info callback in CPLEX OPL

Does CPLEX OPL provides support for info callback? By info callback I am referring to callback allowing to retrieve information of the current solution at a given step of the optimization process.
Matheus Diógenes Andrade's user avatar
1 vote
1 answer
364 views

Operator error in operating cost model constraint

I have built a model to minimize the operating cost and when I coded a model in CPLEX, it gave an error at Cons09: ...
Vanhuuphuoc's user avatar
1 vote
1 answer
726 views

Why some decision variables don't get values in Cplex?

I use this code in the cplex and don't know why some decision variables don't get value, I attach my code below. I don't know my model is wrong or my code? I haven't error in the code but have some ...
ramin's user avatar
  • 55
1 vote
1 answer
2k views

How define variable in CPLEX and What is diffrence between decision variables and variable in CPLEX

I want to code a problem by CPLEX, in this problem I have variables and decision variables, how define them? In this picture you can see the variables: which we have: I use these codes for variables:...
ramin's user avatar
  • 55
1 vote
1 answer
189 views

Coding the OR problem with cplex

I am new to using OPL. I wrote a CPLEX code for the vaccine distribution from a paper, it doesn't get an error, but it hasn't given the answer. I don't know its problem; please help me; I attached the ...
ramin's user avatar
  • 55
1 vote
1 answer
302 views

Get array of sequences for array of interval arrays in OPL

So I want to define multiple sequences (an array of them). I have this: ...
Adam Bajger's user avatar
1 vote
1 answer
510 views

Tuples OPL in VRP

I am trying to build a constraint of the form x[i j] +x[j i] <y[i][j] where x is a decision variable if arc ...
Sofia Saturn's user avatar
1 vote
0 answers
84 views

Information about number of simplex and barrier iterations in OPL CPLEX

I would like to know how can I obtain the exact number of simplex and barrier iterations used by CPLEX in OPL. The solution reports the total number of iterations but I want them to be separated (...
Emmanuel Gómez's user avatar
1 vote
0 answers
50 views

CPLEX OPL - Problem of arrangements and increments

I have a problem involving work shifts and assembly stations. Work shifts have the subscript = T Workstations have the subscript = J My decision variable is X[t][j] For each turn (T) I am trying to ...
Josafat's user avatar
  • 11
0 votes
1 answer
45 views

OPL Constraint to pyomo ConstraintList constraint for concrete model

Could someone help me convert these OPL constraints into equivalent Pyomo ConstraintList constraints for a concrete model: opl code: ...
Wasim Ali's user avatar
0 votes
1 answer
90 views

Array of string in OPL

how to make 2d array of strings in Cplex //indics {string} cluster=...; setof(string) darkstore =...; setof(string)demandpoint =...; //data cluster={chav,sree}; demandpoint=[{tsnami,adholokam,...
Kiran Kumar S's user avatar
0 votes
0 answers
55 views

Solving a multi depot multi vehicle capacitated routing problem using global constraints

I have built the model, but at this point, I am not sure how do I ensure that each fighter starts from the assigned depot and comes back to that depot. here is my code. The ...
Shahrukh Mohd's user avatar