Skip to main content
7 votes
Accepted

Book recommendations on OPL

There are many useful references that can be found by googling. In the following you can find some of them: IBM ILOG CPLEX Optimization Studio OPL Language User’s Manual Introduction to Computational ...
A.Omidi's user avatar
  • 8,940
6 votes

Operator error in operating cost model constraint

Integer programming models solved by CPLEX (or most other solvers) require linear or, in certain very limited cases, quadratic constraints. Your constraint 9 involves dividing a parameter (...
prubin's user avatar
  • 39.5k
4 votes
Accepted

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

your model is not feasible and that is why you get no solution. if you comment ...
Alex Fleischer's user avatar
4 votes
Accepted

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

as can be read in OPL CPLEX documentation, A decision variable is an unknown in an optimization problem. For instance dvar int x in 0..10; is a decision variable <...
Alex Fleischer's user avatar
4 votes

Book recommendations on OPL

I recommand the Model Building Book by Williams and here you may see the examples in OPL. Let me add some OPL links: How to with OPL ? Tips and tricks OPL Scripting OPL and Excel Making ...
Alex Fleischer's user avatar
4 votes

Book recommendations on OPL

There is a rather helpful list of educational resources specific to IBM Decision Optimization products here. If you scroll down a bit, you will find links to some YouTube videos about optimization ...
prubin's user avatar
  • 39.5k
3 votes
Accepted

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

Indeed even for models that are small enough like knapsack you get the message IBM ILOG CPLEX Optimization Studio Community Edition. The CPLEX Optimizers will solve problems up to 1000 variables and ...
Alex Fleischer's user avatar
3 votes

Book recommendations on OPL

Here is a book that Pete Cacioppi wrote to teach OPL and optimization as it relates to network design models. It was meant for beginners. It uses a network design problem as the example, but you don't ...
Michael Watson's user avatar
2 votes
Accepted

Coding the OR problem with cplex

if you name other constraints as: ...
Alex Fleischer's user avatar
2 votes
Accepted

Get array of sequences for array of interval arrays in OPL

in the sched_sequence example in OPL CPLEX you have an example of array of sequences: ...
Alex Fleischer's user avatar
2 votes
Accepted

Info callback in CPLEX OPL

I am not aware of if informational callbacks can be invoked directly via OPl-CPLEX the same as the low-level programming language. For more details, you can check ...
A.Omidi's user avatar
  • 8,940
1 vote

OPL Constraint to pyomo ConstraintList constraint for concrete model

I think this is a perfect task for e.g. chatGPT: Prompt: Could you translate the following OPL constraints to Pyomo using pyomo’s ConstraintList: forall(j in suppliers){ ct_c_f1: x["F"][j]&...
Sune's user avatar
  • 6,562
1 vote

Array of string in OPL

.mod {string} cluster=...; string darkstore [cluster][1..4]=...; string demandpoint [cluster][1..4]=...; .dat ...
Alex Fleischer's user avatar
1 vote

Tuples OPL in VRP

in How to with OPL I shared a few TSP starting points. TSP with remove circuits is an easy one. .mod ...
Alex Fleischer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible