Questions tagged [ibm-ilog-opl]

Use this tag for questions about the Optimization Programming Language involving the use of IBM-ILOG's constraint programming solvers.

IBM-ILOG Optimization Programming Language (OPL) is a high-level, mathematical language for describing optimization models, which produces substantially simpler and shorter code than general-purpose programming languages.

29 questions
1
vote
0 answers

CPLEX Not working on MACOS after OS Update (Big Sur)

I am having some troubles working with CPLEX since I updated my OS to Big Sur. Before it was working just fine, now when I open the interface doesn't open correctly all the time and when it does I keep getting java.lang.NullPointerException each…
1
vote
1 answer

How to fetch the User's Email Id in AS400?

I need to send a mail to the user that the job which is submitted has ended in error, for this how should i retrieve/fetch the email id of the user?
Nicolas
  • 45
  • 1
  • 5
1
vote
0 answers

How to get the IBM cplex stdout into a string instead of printing on console?

I am using IBX cplex solver in my C++ program. by default, it prints the solve output into console. But, i wanted this solver output as a string, which can later be used for logging or cout. To achieve this, i used the below code snippet (with…
Karthick
  • 357
  • 4
  • 13
0
votes
0 answers

IBM ILOG CPLEX out of memory error because of "forall" sections

I'm working on a mathematical model and my cplex code can be seen at the bottom. When I start running this model and I have "out of memory error " after 30 minutes and model says that the problem of this error in theese two "forall" sections. Can…
Berk Uzun
  • 1
  • 1
0
votes
1 answer

How to initialize a three dimensional array in CPLEX?

int t=4; int b=3; int e=5; range time =1..t; range bus=1..b; range ev=1..e; float soci[ev][bus][time]=[[[0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7]] [[0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7]] […
0
votes
1 answer

Complex dexpr in OPL IDE

I have a varaiable depends on another decision variable say the opening cost of a facility which is calculated based on a cell or region, this requires the allocation variable to be calculated first then start calculating the opening cost. I want…
0
votes
1 answer

"Sheet data not supported on this platform" error (ILOG cplex studio on Linux)

Does anyone know how to import a matrix from an csv or xlsx file into the data file of a CPlex project in the CPlex studio? I am using CPlex studio on Linux, and I am trying to solve a linear program. I have an inequality constraint in the form of…
0
votes
1 answer

IBM ILOG CPLEX IDE: File Not Found

I reinstalled cplex after some time and tried to run a simple script. This error keeps appearing and I don't understand why, it doesn't matter what I write in the code of the script, Ilog cplex ide can't seem to find the project folder. Other than…
Kingloss404
  • 15
  • 2
  • 7
0
votes
1 answer

error java scripting cplex optimization studio

I´m a beginner in ibm ilog cplex optimization studio. I´m getting an error when I try to run this code : {int} job=...; // {int} mch=...; // {int} opes=...; float M=...; // tuple capableMchs{ int j; // jobs int o; // operations int m;…
Franco
  • 11
  • 1
0
votes
1 answer

How to find the length of an array and sum of an array and then sumproduct of two diff arrays in cplex IBM ilog?

I have int a ; int b ; int c ; range m= 1..a; range n= 1..b; range o= 1..c; int s[m]=[11,1,1,1,1,1,1,1,1,1]; int q[m][o]=[[4,5,0,2],[3,2,1,0],[0,1,4,5],[3,2,0,1],[2,1,3,2],[4,3,2,1],[3,4,2,0],[5,0,3,1],[0,4,3,3],[4,0,4,1]]; a=length(s); b= sum(i in…
Deepan
  • 9
  • 4
0
votes
2 answers

How to extract a varying Problem Solution in IBM ILOG CPLEX Optimization Studio

I am trying to find feasible solutions for a specific problem using IBM ILOG CPLEX Optimization Studio. I currently found a method to extract the problem solution using SheetWrite, however, this method requires a predefined range in the excel sheet.…
0
votes
2 answers

How to minimize total cost of external resource in MRCPSP?

Hi I'm trying to make a model with objective function to minimize cost of mode 2 usage( mode with using external resource). I confuse when I want to make a limitation total time <=21 the result is no value, but when I set the time <= 50 the result…
0
votes
1 answer

Earn value in scheduling

I want to make a rescheduling, I have 2 modes with different earn value mode 1 have a little earn value and long duration than mode 2. If I want to make productivity * duration of activity i in mode m <= earn value in day 7 than choose mode 2 to…
0
votes
0 answers

How to make a rigid alternative constraint based on earn value

i want to make a rescheduling model. I have 2 modes in tuple, I declare it using ID, I want to make a constraint if the costprod * duration in present's mode in day 1-7 <= earn value than choose mode 2. But I think something missing in model. but I…
0
votes
0 answers

ILOG CPLEX Optimization Studio not working on MacOS

I tried to use ILOG CPLEX Optimization Studio on my MacBook. The installation worked fine, but after startup the application is literally unusable. I created a empty Project, when I click any file I get a java.lang.NullPointerException. In the…
1
2