Docplex

Latest version: v2.27.239

Safety actively analyzes 629691 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

2019.12

* In ``docplex.mp``:
* Added a LinearRelaxer class to make a linearized copy of a MIP model (if possible).
see class `docplex.mp.relax_linear.LinearRelaxer`
* Conflict refiner default behavior is now identical to CPLEX interactive
(the new behavior is much faster).
* Bug fixed: expressions of the form k*x did not notify constraints when modified.
* Fixed: message "ignored keyword argument" was incorrectly printed when setting
`cts_by_name=True` in model constructor.

2019.11

* Added support for CPLEX 12.10
* In ``docplex.mp``:
* Logical expressions, binary variables, and constraints can now be freely nested with logical operators.
* Fixed a print of 'CPLEX Error 1217' in log for multi-objective problems.
* Fixed a bug when setting log_output to a file name: file was created, but empty.

2019.08

* Fixed bug in logical_and() when result var is set to 0.

2019.07

* In ``docplex.mp``:
* fixed a bug in ModelReader when reading SAV files with no names
* fixed a bug in mip starts, which prevented mip starts with piecewise
functions to work properly.
* fixed bug on Model.add_indicators() using comprehensions (len() was called).
* Added support for the '!=' (not equals) operator in expressions.
* Clarified four types of checker: on, off, numeric and full.
Pass checker=<name> at model creation to specify which checker is used.
* fixed a bug in solution JSON encoder for nonconvex QP problems.
* Add direct support for lazy constraints, see Model.add_lazy_constraints()
* Add direct support for user cuts, see Model.add_user_cut_constraints()
* Get basis status of variables in LP problems, see `Var.basis_status`
* Read MIP start files (MST format)
* Allow to set the effort level for a MIP solution.
* Read basis status files (in BAS format)
* Read variable priority orders (in ORD format)
* fixed bug in functional KPIs, solution argument was not passed on.
* Enable constraint name dictionary at Model creation time: Model(cts_by_name=True)
* Multi-objective is now pickled correctly
* Multi-objective is now copied in Model.copy()
* Wrote full documentation on progress listeners
* Added `Model.set_lp_start_basis()` to provide an initial basis for LP problems.

* In ``docplex.cp``:
* When trying to access a solution member that does not exists, an exception is thrown instead of returning None.
* Add a new map_solution function that replace in a Python object all model expressions by their value in a solve result.
* In CPO parser, fix a problem reading line statements in startingPoint section.
* In CPO parser, skip experimental section 'expressions' in 'startingPoint' section.
* Simplify writing of interval variable domains reduced to a single value.
* Adding a second objective function now raises an exception
* Add new experimental local solve with a shared library.
* Enable iterators to specify the domain of an integer variable
* Add global methods get_version_info() and get_solver_verion() in docplex.cp.solver.
* By default, generate CPO model without explicit format version.
* Add a method reset() on CpoParameters object.
* Modeling method allowed_assignments() and forbidden_assignments() can now accept an empty list of tuples.
* On CpoModelSolution object, add a function map_solution() thar replace variables by their value in a python object.
* Add parser for LP models
* Add possibility to import CPO, MZN and LP models in gzip and zip format.
* Enhance management of unexpected errors thrown by cpoptimizer.exe

2019.03

* In ``docplex.mp``:
* Removed links to rawgit.com as this service is going end of life.
* Model.solve_lexicographic() is deprecated. This method should be used
to perform lexicographic solve with COS 12.8, but with COS 12.9,
Model.set_multi_objective() should be used for solving problems
with multiple objectives.

* In ``docplex.cp``:
* Add KPIs supported by CPO Solver 12.9
* Update CPO parser to read KPIs section for format 12.9
* Add new examples with KPIs.

2018.10

* Solving with solver agent 'docloud' is deprecated.
Models are now preferably solved with local solver, or the python source can be submitted to DOcplexcloud solve service.
See https://ibm.biz/BdYhhK.

* In ``docplex.mp``:
* solve_lexicographic is being deprecated. In a future version, a new api will be available to support multi-objectives.

* In ``docplex.cp``:
* Fix problem with boolean indicators in no_overlap(), always_constant() and always_equal().
* Allow model solution to be used directly as a starting point (ignores what is not integer or interval var).
* Add methods domain_min(), domain_max(), domain_iterator() and domain_contains() on both CpoIntVar and CpoIntVarSolution.
* Default solver agent is now 'local' instead of 'docloud'. All examples modified consequently.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.