Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions related to the IBM Decision Optimization CPLEX (docplex) which is designed for modeling and solving optimization problems in Python.
4
votes
1
answer
3k
views
How to retrieve the variable's value in DOCplex
I am trying to write a simple optimization problem by using DOCPLEX. …
2
votes
How to obtain nodes count and nodes left in docplex (using CPLEX 12.20 and Python 3.8)
I think what you want can be seen in the CPLEX log as follows:
Tried aggregator 1 time.
Presolve time = 0.00 sec. (0.00 ticks)
MIP emphasis: balance optimality and feasibility.
MIP search method: …
2
votes
sensitivity analysis in python + Docplex
pip install docplex
! …
1
vote
Docplex : How can I get the objective value of the relaxation of an MILP?
As a simple example to work around what you want the following template would be useful:
from docplex.mp.model import Model
from docplex.mp.relax_linear import LinearRelaxer
# The originial model nam …
2
votes
Accepted
Converting continuous variable dict to binary variables in python docplex
This can be invoked on DoCplex by;
The_defined_variable.set_vartype('C')
Where the character "C" would be as well as either "B", "I" or "N" to convert continues, binary, integer or semi-defined variables … pip install docplex
from docplex.mp.model import Model
from docplex.mp.relax_linear import LinearRelaxer
m = Model("model")
'''
optimization model
'''
lp = LinearRelaxer.make_relaxed_model(m)
lp.print_information …
2
votes
Scheduling with transition costs - DOCPLEX
It should be noted that, in both options, you could try developing your model in CPLEX python API and feeding that into the DOCPLEX.
I hope it would be useful. …
1
vote
Updating constraint set rhs in docplex
I think the method you pointed out would be as follows:
# model
mdl = Model(name='...')
variables part
constraints like
mdl.add_constraint(LHD <=> rhs, 'name')
mdl.minimize(...)
RHS = []
for i in …