Changelogs » Amplpy

PyUp Safety actively tracks 232,000 Python packages for vulnerabilities and notifies you when to upgrade.

Amplpy

0.6.10

- Fix "ImportError: DLL load failed" not fixed in the previous version.

0.6.9

- Fix "ImportError: No module named _amplpython" introduced in the previous version.

0.6.8

- Add Python 3.8 support.

0.6.7

- Add optional parameter index_names to DataFrame.fromPandas.
  - Add DataFrame.fromDict to load data from dictionaries.
  - Allow setting entity values directly from dictionaries.

0.6.6

- Update internal library.
  - Add AMPL.exportModel.
  - AMPL.exportData now supports indexed sets.

0.6.5

- Improve AMPL.exportGurobiModel and AMPL.importGurobiSolution.
  - Add verbose option to AMPL.exportGurobiModel.
  - Add register_magics to register `%%ampl` and `%%ampl_eval`.

0.6.4

- Fix dll loading issue with python versions that come with conda.

0.6.3

- Fix issue with indexed sets (by updating the internal library).

0.6.2

- Add support for Pandas Series.
  - Add optional gurobiDriver parameter to AMPL.exportGurobiModel.

0.6.1

- Improve robustness of AMPL.exportGurobiModel.
  - Improve error message when AMPL is not in the search path.

0.6.0

- Upgrade internal API to v2.0.
  - Add experimental methods AMPL._startRecording and AMPL._stopRecording.
  - Add experimental method AMPL._loadSession.
  - Add method AMPL.getCurrentObjective.
  - Add support to Python 3.7.
  - Fix truncated values in sets (amplapi337).
  - Add method AMPL.importGurobiSolution.
  - Add method AMPL.getOutput.

0.5.0

- Breaking: AMPL errors raise exceptions by default.
  - Breaking: Drop support for Python 3.3 on Linux.
  - Add AMPL.exportData.
  - Add AMPL.exportGurobiModel.

0.4.1

- Fix: compatibility issues with multiple python versions.

0.4.0

- Improve interaction with Pandas and Numpy.
  - Add DataFrame.fromNumpy.
  - Entity.setValues now accepts Pandas DataFrames.
  - Parameter.setValues and Set.setValues now accept Numpy arrays and matrices.
  - Breaking: DataFrame.toList and DataFrame.doDict do not wrap scalar values into lists anymore.

0.3.4

- Fix: error messages not being shown in Jupyter Notebooks.
  - Breaking: AMPL errors no longer raise exceptions by default.

0.3.3

- Fix issues related to the passing of infinity to AMPL.

0.3.2

- Fix issue with DataFrames created with pandas.read_table.

0.3.1

- Fix precision issue in parameters.

0.3.0

- Introduce alternative method to access entities.

0.2.0

- Add DataFrame.fromPandas and DataFrame.toPandas.

0.1.2

- Improve DataFrame initialization.
  - Fix issue with stdout in jupyter notebooks.

0.1.1

- Fix issues with strings in Python 3.

0.1.0

- Initial release.