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 ...
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 ...
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; unti ...
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 b ...
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 ...
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 multi ...
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 constrai ...
How can I store the text version of a constraint defined as a docplex.mp.linear.LinearExpr variable into a Python string variable? ...
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 excerp ...
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 pos ...
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[ ...
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 ef ...
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 ...
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 t ...
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 so ...
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 mod ...
I am having a problem interpreting this log that I get after trying to maximise an objective function using docplex: What I don't understand is the ...
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: {Pr ...
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 usi ...
I need to solve an optimization problem that is similar to the knapsack problem. I have detailed the optimization problem in this post: knapsack optim ...
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 p ...