3
votes
Accepted
Can a logical expression be added to the objective function of a model in docplex?
We can use a "big M" approach, assuming that you can find a positive constant $M$ such that $\vert y_{jk}-y_{ik} \vert \le M$ for all $k\in K$ and $(i,j)\in V.$
Introduce new binary ...
3
votes
Dual problem in IBM CPLEX
If the primal LP problem suffers from degeneracy, I believe dual simplex may be faster. You might try using the barrier method to solve the (primal) LP. In cases where the LP has degeneracy issues, I ...
2
votes
Accepted
Modifying and re-optimizing a model using CPLEX Python API
You can do incremental changes
https://github.com/AlexFleischerParis/zoodocplex/blob/master/zooincremental.py
...
1
vote
Using CPLEX academic version with Pyomo on MacOS
To run CPLEX on MacOS use the code:
solver = SolverFactory('cplex', executable = '/Applications/CPLEX_Studio2211/cplex/bin/x86-64_osx/cplex')
1
vote
Updating constraint set rhs in docplex
I think the method you pointed out would be as follows:
...
1
vote
Modifying and re-optimizing a model using CPLEX Python API
Now with the CPLEX Matrix API you can do the same kind of changes of course.
Let me start with the example from
https://medium.com/@alexfleischer_84755/optimization-simply-do-more-with-less-zoo-buses-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cplex-python-api × 28cplex × 18
python × 13
docplex × 8
optimization × 5
pyomo × 5
mixed-integer-programming × 2
integer-programming × 2
solver × 2
nonlinear-programming × 2
branch-and-bound × 2
linear-programming × 1
reference-request × 1
combinatorial-optimization × 1
vehicle-routing × 1
or-tools × 1
binary-variable × 1
quadratic-programming × 1
network-flow × 1
graphs × 1
benders-decomposition × 1
facility-location × 1
assignment-problem × 1
ampl × 1
gams × 1