DOcplexcloud is IBM's Decision Optimization on Cloud, which simplifies planning and scheduling tasks in industries and functional areas such as human resource planning, supply chain management, and production sourcing. DOcplexcloud is an IBM Bluemix service that provides a cloud-based interface to IBM's CPLEX optimization engines.
Questions tagged [docplexcloud]
33 questions
2
votes
1 answer
IBM Data Science Experience (DSX): Decision Optimization in DSX
Thanks in advance.
I'm using IBM Data Science Experience (DSX). In order to use Decision Optimization in DSX, I need to get a DOcplexcloud API Key.
How to get the API Key?
Once again, thank you very much for the time you've given.
Regards,
Deb

Deb
- 77
- 6
1
vote
1 answer
doopl parameter setting in python
I'm playing with doopl in python.
And I would like to set minimal gap tolerance with
opl.cplex_stats.MiPRelativeGap()=5
which doesn't work.
If possible, I want to make run-time limit.
But I couldn't find and resources that has does parameter…

Ho Young Jeong
- 27
- 5
1
vote
1 answer
Implementing TSP with Lazy constraint callback
I am trying to TSP with Lazy constraint callback. From Answer given here and here, I have tried to use the code from the links and was able to add the call back function. Now I am struggling with add_lazy_constraints.
Here is my current code: It is…

ooo
- 512
- 1
- 7
- 27
1
vote
1 answer
TSP implementation in docplex python
Is there any python implementation available of TSP using the IBM cplex tool, with Dantzig-Fulkerson-Johnson formulation.
If there is any can I get the link for it?

ooo
- 512
- 1
- 7
- 27
1
vote
1 answer
How to model constraints in optimization problems using docplex (python)?
I need to solve an optimization problem that is similar to the knapsack problem. I have detailed the optimization problem in this post:
knapsack optimization with dynamic variables
I actually need to tu use python instead of OPL, so I have installed…

sel
- 942
- 1
- 12
- 25
0
votes
0 answers
CPLEX Studio solve MIP problem forever, what should I do?
everyone I have tried to solve a MIP problem with CPLEX Studio. Now it's 8 hrs. still not find the solution. I am minimizing distance of waste collection. Details are as follows:
The data is matrix of 49 rows * 49 columns.
Decision Variable:…
0
votes
0 answers
Need help Cplex code about optimization waste collection with collection point my code seem not right
I am currently working on optimizing waste collection and attempting to create a Traveling Salesman Problem (TSP) model that incorporates collection points.
The primary objective of this code is to efficiently collect waste from all the general bins…
0
votes
1 answer
How to retrieve output data as JSON from IBM Watson cloud
I am solving a decision optimization problem using Cplex solver (Docplex) on IBM Watson Cloud. However, I got stuck trying to adapt the output format.
Available documentation provides the following function to include in the main file in order to…

Yasmine
- 1
- 3
0
votes
0 answers
How to create range variable in DoCPLEX the way I prefer?
Suppose we have two variable x and y, and I want x-y between 0 and 1. So I did this
x = mdl.continuous_var(0, 1, 'x')
y = mdl.continuous_var(0, 1, 'y')
mdl.add_range(0.0, x - y, 1.0, f'_range_experiment')
In the LP file, I can see that this is…

qqzj
- 21
- 1
- 6
0
votes
1 answer
Not showing any solution in cplex
CPLEX is not showing any solution after I have integrated the equations of pevch[i][j] and pevdis[i][j]
int t=24;
int n=10;
int j=0;
range number =1..n;
range tavail=1..t;
float soc[number][tavail]=...;
//forcasted load at 0..4
float…

Haripriya M R
- 11
- 3
0
votes
0 answers
Can not Deploy Cplex Model as WebApp to cloud (Streamlit Share) using IBM CPLEX Academic Initiative
I have built the Cplex Model for scheduling in Python, here I am using IBM CPLEX Academic Initiative. I have also created simple WebApp (With basic UI of uploading data to feed to the model & getting result) for my model using Streamlit, it works…

Gops
- 1
- 1
0
votes
1 answer
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)

Trí Vũ
- 25
- 3
0
votes
0 answers
How to create piecewise linear relationship in DOcplex efficiently?
I am able to create a piecewise-linear relationship with DOCplex. In fact, it is just the plain absolute value function.
Abs = mdl.piecewise(-1, [(0, 0)], 1)
mdl.add_constraint(buy_var[i] + sell_var[i] == Abs(buy_var[i] - sell_var[i]),…

qqzj
- 21
- 1
- 6
0
votes
1 answer
'Maximum polynomial degree is 2' docplex's error
I am using docplex (docplex.md.model) for a minimization problem, and my objective function has a product of three variables (one continuous and two binaries), when running the code I got this error:
DOcplexException: Cannot multiply -x1*x21 by x2,…

walid
- 285
- 1
- 2
- 8
0
votes
2 answers
CPLEX constraints
I need to optimize a selection of investments that have the highest total impact.
The constraints are that the total Investments can be maximum of 8.0
An additional constrain is that each Category can only be assessed twice
The problem I face is…

BST
- 11
- 1