Skip to main content

A Python package for using MAiNGO - McCormick-based Algorithm for mixed-integer Nonlinear Global Optimization

Project description

maingopy - Python interface for MAiNGO

Maingopy is the Python interface for MAiNGO, the McCormick-based Algorithm for mixed-integer Nonlinear Global Optimization. MAiNGO is a deterministic global optimization solver for nonconvex mixed-integer nonlinear programming problems. For more information on MAiNGO, please visit the MAiNGO website. The open source version of MAiNGO is available on our GitLab page. The documentation of MAiNGO is available here.

Obtaining maingopy

Maingopy can either be obtained as a source of binary distribution via PyPI or built from source via the git repository.

To obtain it via PyPI, run

$ pip install maingopy

This will typically get you the binary distribution of the maingopy package that contains a pre-compiled version of MAiNGO along with its Python bindings, as well as an extension module for MeLOn, which contains machine learning models for use in optimization problems to be solved by MAiNGO. Note that the pre-compiled version of MAiNGO contained in this package does not allow the use of the optional closed-source subsolvers CPLEX or KNITRO, even if they are installed on your system.

To build maingopy (and melonpy) from source along with MAiNGO, obtain the code from our GitLab page and follow the instructions provided there. This also allows using CPLEX or KNITRO if you have them installed.

Using maingopy

Maingopy provides Python bindings (enabled by pybind11) for the C++ API of MAiNGO. Details on how to use it are available in the documentation of MAiNGO. Example problems can be found in the examples directory in the MAiNGO repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maingopy-0.5.0.tar.gz (17.1 MB view hashes)

Uploaded source

Built Distributions

maingopy-0.5.0-cp39-cp39-win_amd64.whl (5.0 MB view hashes)

Uploaded cp39

maingopy-0.5.0-cp38-cp38-win_amd64.whl (5.0 MB view hashes)

Uploaded cp38

maingopy-0.5.0-cp37-cp37m-win_amd64.whl (5.0 MB view hashes)

Uploaded cp37

maingopy-0.5.0-cp36-cp36m-win_amd64.whl (5.0 MB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page