Docplex

Latest version: v2.28.240

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

Scan your dependencies

Page 2 of 6

2021.06

* In ``docplex.mp``:
* Add support for importing solution from a different model, provided variables
can be matched between both models (Model.import_solution)
* Added contextual function to temporarily modify aspects of the model:
`model_parameters` to change parameters in a block, `model_objective` to set a temporary objective in a block.
* Naming expressions is now deprecated, use a temporary variable if needed.
* Display of expressions in constraints is customizable: use a space separator (or not),
set a maximum length for very long expression.
* Fixed documentation references to class Var, moved from linear to dvar
* Fixed a bug in LP export for multi-objective models with no priorities passed

* In ``docplex.cp``:
* Replace context attribute solve_with_start_next by solve_with_search_next, keeping ascending compatibility.
* Support solver parameter ModelAnonymizer to generate random names for all model elements (except KPIs) in the CPO file format.
* Optimize generation of CPO expressions from Python expressions
* Interval variable solutions tuples are now named tuples.
* Method CpoModel.add() now accepts multiple expressions (or lists of expressions) to add to the model.

2021.02

* In ``docplex.mp``:
* Add support for exporting solutions and solution pools to SOL format.
* Add fast methods for changing batches of variable bounds:
Model.change_var_lower_bounds, Model.change_var_upper_bounds
* Reset random seed value for cplex 12.10 , was different from COS release value.
* Improved performance of variable creation
* Removed a warning about accessing a deprecated "solve_status" in solve.
* docplex.mp.AdvModel now has checker enabled by default to avoid Python errors.
Is is up to the user to disable type-checking to get maximum performance.
* Fixed a bug about not printing updated variable bounds in MPS and SAV
* Changed the default rounding behavior: solution values are not rounded by default.

* In ``docplex.cp``:
* Fix problems on step function operations.
* Add status in conflict refiner solution object.
* Fix a bug to not send and receive conflict in CPO format if no conflict.
* Enhance printing of model solution.

* The method search_next(), returns only new solutions of the model.
In particular, no new solution is returned if solve status just change from Feasible to Optimal.
* Rework completely model statistics (CpoModelStatistics)
* Add a parameter add_cpo to the write method of CpoRefineConflictResult

2020.12

* In ``docplex.mp``:
* Exporting models to SAV.gz format is now supported.

* In ``docplex.cp``:
* Add a new method remove_expressions() to CpoModel that removes a list of expressions in one shot.
* Update documentation to describe how to set private solver parameters.
* Add functions to export and import context as flat file.
* Fix a bug on the string representation of calls to constant() modeling function.
* Add JSON filter in case of double identical value for objective.
* Add functions to export and import context as flat file.
* Fix a bug on the string representation of calls to constant() modeling function.
* Add JSON filter in case of double value for objective.

2020.11.3

* In ``docplex.mp``:
* Latest supported CPLEX Optimization Studio is now 20.1

2020.11.2

* In ``docplex.mp``:
* Fixed a bug with pickling: edition of a constraint in a pickled model raised an error
* Fixed a bug with pickling: models with piecewise-linear constraints could not be pickled

* In ``docplex.cp``:
* Add environment variable DOCPLEX_CP_CONTEXT to modify configuration
* Add new module check_list that print a report on execution environment
* Remove DOcloud from documentation (including code)
* Rework customization of configuration and better support of default directory
* Add new configuration parameter model.sort_names to drive sort of variable declarations in CPO file format.
* Fix a problem that may crash Python in case of abort_search with local solve.

2020.11

* In ``docplex.mp``:
* add `Model.add_quadratic_constraints()` to add a batch of quadratic constraints
* add `Model.populate_solution_pool()` for a native support of solurtion pools
* support of CPLEX 20.1
* compatible with Python 3.8 (only with CPLEX 20.1)
* enable changing absolute and relative tolerances for multi-objectives
* Optimization of `Model.if_then`: when condition is of the form `b==1` (or 0), no additional boolean
variable is generated
* For solving, `docplex.mp` now uses the `cplex` module if it has been installed. If not, `docplex.mp`
checks for the latest installed version of CPLEX Optimization Studio (COS) (using the CPLEX_STUDIO_DIRXXX
environment variables) and use the `cplex` if a COS is found, unless the configuration of the engine
states otherwise.

* In ``docplex.cp``:
* Add pngfile= parameter to visu.show() method to store in a PNG file instead of display on screen.
* Make parameters and solver infos also available in refine_conflict solution.
* Add a IntegerDomain class used to represent domain of integer variables, with a specific __str__ method
* Add new functions ceil(), floor(), trunc(), round() and sgn()
* Remove all warnings generated by Python 38
* Optimize creation of add expressions with CumulExpr and zero
* Implement configurable factorization of common model expressions when generating CPO format
* Add checking of scal_prod() array sizes at modeling time
* Add strict_lexicographic() and checking of strict_lexicographic() and lexicographic() array sizes at modeling time.
* Add failure explanation as new method explain_failure() allowing to log failure tags or get details on one or several failures.
* Enhance management of local solve sub-process timeout with detailed error and configurable timeout delay
* For solving, `docplex.cp` now uses the `cpoptimizer` executable if it has been installed. If not, `docplex.cp`
checks for the latest installed version of CPLEX Optimization Studio (COS) (using the CPLEX_STUDIO_DIRXXX
environment variables) and use the `cpoptimizer` if a COS is found, unless the configuration of the engine
states otherwise.
* Support last optimal solution in search/next sequence
* Support of solver parameters in all next() solutions
* Add solver version in process info attached to a run result

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.