Skip to main content

Questions tagged [cplex-python-api]

Filter by
Sorted by
Tagged with
0 votes
2 answers
63 views

I am working on the Markowitz Quadratic Portfolio optimization. I have this Lingo code : ...
estellec's user avatar
2 votes
1 answer
95 views

I'm using Docplex's Constraint Programming model with two 4-dimensional binary decision variables: ...
Bree's user avatar
  • 139
2 votes
1 answer
873 views

I am trying to develop in python 3.10, and locally I have cplex 20.1.0.0 installed. It appears to me that the python interface cplex only supports python version 3....
TTY's user avatar
  • 245
2 votes
1 answer
173 views

I'm working on an optimization problem using Docplex and wonder if it's possible to incorporate a logical expression into the objective function of my model. Specifically, I have three variables x, y, ...
Nada.S's user avatar
  • 429
3 votes
1 answer
350 views

Im solving n-dimensional Knapsack problem as LP problem. I noticed that sometimes dual LP problem may be solved much faster than primal. My test problem contains 500k variables and 50k constraints, ...
John's user avatar
  • 131
2 votes
1 answer
338 views

I am trying to update the rhs of a constraint iteratively under a while loop in docplex, however, it does not work properly. As I analyze the output text file, while some constraints are updated as I ...
user avatar
3 votes
2 answers
368 views

I came across the following functionality that is offered by CPLEX for modifying and re-optimizing a model based on previous computations: https://perso.ensta-paris.fr/~diam/ro/online/cplex/cplex1271/...
Pia MiA's user avatar
  • 390
4 votes
0 answers
2k views

I have implemented a Pyomo model for solving maximum flow problem as a subroutine of an algorithm. However, the approach does not scale very well because Pyomo does not provide a very good way to re-...
Pia MiA's user avatar
  • 390
3 votes
1 answer
254 views

I am working on DoCplex to run a large model with several variables and constraints. I used the following link from sensitivity analysis in python + Docplex to run the sensitivity analysis. In that ...
Bree's user avatar
  • 139
2 votes
2 answers
449 views

I have recently tried to use the CPLEX solver to solve one of my Pyomo models. I first installed the community version that is available:https://pypi.org/project/cplex/ using ...
Pia MiA's user avatar
  • 390
2 votes
1 answer
384 views

Here's an applicative problem I'm trying to solve. Imagine there is a road that can be classified in 5 states. Can be something from good to bad etc. There are 4 maintenance actions possible. And the ...
Meet Saiya's user avatar
1 vote
0 answers
187 views

I am trying to do something with user callbacks in Cplex using Python API. For instance, I will need a callback that only counts the number of explored nodes. While testing something I noticed that ...
Elena's user avatar
  • 251
2 votes
1 answer
77 views

I' implementing custom branching heuristics for Cplex in python. I have a way to choose a (binary) variable to branch on, so use the following code to create two branches from BranchCallback (...
Elena's user avatar
  • 251
2 votes
1 answer
690 views

I was wondering if it is possible to get the active constraints of a linear program from the Python API of Cplex? Or do I have to go through the constraints one by one and check if they bind with ...
Elena's user avatar
  • 251

15 30 50 per page