Questions tagged [docplexcloud]

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.

33 questions
0
votes
1 answer

How to use Feasopt with docplex python api?

I'm using the docplex.mp.model module to run a mixed-integer-programming problem when I ended up receiving an infeasible solution? Is there any way I could use the Feasopt in order to repair my model?
0
votes
1 answer

Single-source and multi-destination problem in CPLEX/Docplex?

Can we use the CPLEX/Docplex for single-source and multi-destination problem in a network? For example, routing a vehicle from a source to visit multiple destinations in a single trip minimizing the overall travel time.
0
votes
1 answer

Cplex for Linear Program: Are DOCplex decision variables assumed to be non-negative?

I want to write a simple LP using docplex. Suppose I have three variables: x, y, and z, the constraint is 4x + 9y - 18.7 <= z. I wrote the constraint with the code model.add_constraint(4 * x + 9 * y - 18.7 <= z). Then I set minimize z as my…
Francis
  • 189
  • 1
  • 11
0
votes
0 answers

ILP problem using docplex CP Optimizer (Nothing to read from local solver process)

I solve my ILP problem using docplex IBM package for Python under CP Optimizer Model. It's working correctly, and I get the target result; however, when I call the Model.solve() many times. i.e., more than 10000 cycles, in the beginning, everything…
0
votes
1 answer

Converting docplex expression into string

How can I store the text version of a constraint defined as a docplex.mp.linear.LinearExpr variable into a Python string variable?
Omar Shehab
  • 1,004
  • 3
  • 14
  • 26
0
votes
1 answer

Adding multiple quadratic constraints in DOCPLEX

I am trying to add quadratic constraints to a docplex model however it is interpreting them as linear and giving me error messages. below is a excerpt from the script here is the quadratic constraint: mdl.add_constraints((mdl.sum(Allocation[o,p] *…
0
votes
3 answers

How to combine 2 constraints to minimise cost and maximise capacity using DOcplex.mp in Python

I have the following OF to minimize the cost of supply chain: mdl.minimize(mdl.sum((cs+ch+cf+cv*d[j])*q[j] for j in arcs) + mdl.sum(α*(eh+et*d[j])*q[j] for j in arcs) + mdl.sum(β*(gh+gt*d[j])*q[j] for j in arcs) + mdl.sum(X[f]*cjf for f in…
0
votes
1 answer

docplex with callback in dropsolve

Is it possible to solve a model that has a callback using model.solve(url=url, key=api)? I am trying an example similar to this but callback has no effect when called on dropsolve.
ooo
  • 512
  • 1
  • 7
  • 27
0
votes
2 answers

DOcplexException: Expecting sequence of constraints, got: True at position 0

I am using docplex in google collab with python For the following LP, the some of the decision variables are predetermined, and the LP needs to be solved for that. It's a sequencing problem and the sequence is a set of given values. The other…
0
votes
2 answers

TypeError with docplex 2.10.15x

After switching from docplex 2.9.141 to version 2.10.150 (same with 2.10.151) I started having the following error when trying to call solve on my model (using my docloud credentials). I expect that this problem is caused by the fact that the class…
Paul V
  • 196
  • 1
  • 8
0
votes
2 answers

How to interpret the log output of docplex optimisation library

I am having a problem interpreting this log that I get after trying to maximise an objective function using docplex: Nodes Cuts/ Node Left Objective IInf Best Integer Best Bound ItCnt …
sel
  • 942
  • 1
  • 12
  • 25
0
votes
1 answer

Why IBM optimizer studio OPL gives different results than docplex?

Here is the optimization-problem, I am trying to solve (with a little twist, with the opl code I use. The opl code gives me two solutions namely: {Product12,Product31} When I translate this to the python language using docplex using this code: from…
sel
  • 942
  • 1
  • 12
  • 25
0
votes
1 answer

Cplex(Python), is it normal that model.solution is giving different results than model.print_solution()?

I am actually having a problem accessing the solutions after solving an optimization problem using docplex. Below I am posting the full code I am using, as long as the results I get (The results are commented): The optimization problem is fully…
sel
  • 942
  • 1
  • 12
  • 25
0
votes
1 answer

DOcloudForbiddenError : limit of 5 jobs total

I am calling CPLEX model of IBM Watson. It is key from a free account. It has been working well. But somehow, it slowed down and I stopped my client program. Subsequently, I am getting the following error: docloud.job.DOcloudForbiddenError:…
Soumen Ghosh
  • 168
  • 2
  • 11
0
votes
1 answer

CPLEX - getting minimum of a matrix subset

I am using the Python API to cplex to solve an optimization problem: finding the set of binary variables of size N (e.g. 10) to maximize their mutual distance. To do so, I have put together the following: matrix = pd.read_csv("matrix.csv",…
saladi
  • 3,103
  • 6
  • 36
  • 61