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
0
votes
2 answers

How can I use c++ or java library in IBM ILOG CPLEX optimization studio

I coded an Opl project in IBM ILOG CPLEX Optimization Studio. I have more than 300 number of files and I get my data from each of them in each attempt. Instead of importing one by one, I want to define an automatic way to import each file, get its…
MOn
  • 11
  • 5
0
votes
1 answer

what is the problem with the following code?

I have an array of facilities. I want to have indexes of the facility which is selected and allocated. In the end, I want to have a CSV output which shows me each of the facilities. But instead of showing them like [24 15 30 ...] I want to…
MOn
  • 11
  • 5
0
votes
0 answers

How can I put a limitation for CPLEX parameters?

I asked my question before. However, because I did not put my code I never get my answer. I'm new in CPLEX and I need help. my code tries to solve a p median problem. I created an OPL project which contains one mod and one data file. The code is…
MOn
  • 11
  • 5
0
votes
1 answer

Changing array's length as I typed number.(IBM ILOG CPLEX OPL)

Now I'm trying to make a array that change their lengths to what I typed variables. Let me show you a sample code that makes understand you easier. int ANum = 3; // Number of Equipment A int BNum = 2; // Number of Equipment B int QNum = 8; //…
0
votes
2 answers

My question is about Resource constraint Project Scheduling Problem code in cplex. I am trying to apply Preemption to it

I am working on RCPSP and want to apply Preemption to it. I have divided the duration of every task into equal parts. Now after doing that I am unable to apply Precedence constraints to each of individual unit duration of a task. using CP; int…
0
votes
1 answer

CPLEX Studio long overhead time for network flow problems

I am trying to solve a network flow problem by writing it as a linear program using OPL and solving it with CPLEX Studio. It took CPLEX Studio 26 minutes to solve the problem. However, the Engine Log says that Network time = 0.21…
thor
  • 21,418
  • 31
  • 87
  • 173
0
votes
1 answer

CPLEX OPL: Force a set of decision variables to be equal

Any smarter way to force a set of decision variables to be equal? (If not feel free to use the solution) Declarations Given the following set: ID1 | ID2 ------- | ------- A | AA B | AA C | BB C | AA C | CC D |…
0
votes
1 answer

Defining two sets in cplex

I am new to Cplex an I want to define two sets named PathOfEdge (Set of nodes whose working routes cross link i) and PathOfOut ((Set of nodes whose working routes does not cross link i))in cplex, How can I define PathOfOut set ? // Basic network…
zein
  • 35
  • 6
0
votes
1 answer

epsilon-constraint method in OPL CPLEX

I want to code a bi-objective problem with epsilon-constraint method in ILOG OPL, is there any samples to help me? thanks
Alireza
  • 1
  • 3
0
votes
3 answers

How to change CPLEX parameters in oplrun?

Is there a way to let oplrun take a specific CPLEX parameter, such as CPX_PARAM_LPMETHOD (Linear Programming method). In the reference here, it is called by various names for different languages: C Name: CPX_PARAM_LPMETHOD C++ Name: RootAlg Java…
thor
  • 21,418
  • 31
  • 87
  • 173
-1
votes
1 answer

IBM ILOG CPLEX Optimization Studio not working on MAC

I just downloaded the latest version of IBM ILOG CPLEX Optimization Studio for mac (Scholar version), I managed to install it but when I open it it only shows a blank white window . Does anyone know a solution to this problem? Thank you I'm on MACOS…
sawsawi
  • 3
  • 4
-1
votes
1 answer

How to reform and trans-shape matrix?

First of all, thank you for all readers. The problem as below. int MaxANum = 5; int MaxBNum = 3; int MaxENum = 8; int ANum = 3; int BNum = 2; int ENum = 5; range TTRange = 1..(MaxANum+MaxBNum); range TRange = 1..(ANum+BNum); range ARange =…
-2
votes
1 answer

How to code this linear program in IBM CPLEX?

How can I code the linear program using IBM CPLEX?
Prateek
  • 3
  • 1
-2
votes
1 answer

Set limitation on gap tolerance and run time

I have two questions: In IBM ILOG CPLEX, I wrote an OPL project. Because the code works with large scale data, it takes a lot of time to solve. What is the code for limitation the gap tolerance of MIP Problem and limitation the time? I want to have…
MOn
  • 11
  • 5
1
2