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 ...
prubin's user avatar
  • 37.9k
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 ...
prubin's user avatar
  • 37.9k
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 ...
Alex Fleischer's user avatar
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')
Maria Chedzoy's user avatar
1 vote

Updating constraint set rhs in docplex

I think the method you pointed out would be as follows: ...
A.Omidi's user avatar
  • 8,450
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-...
Alex Fleischer's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible