Python interface to MC++
Project description
MC++ Toolkit for Construction, Manipulation and Evaluation of Factorable Functions
MC++ provides a collection of classes to support the construction and manipulation of factorable functions and their evaluation using a range of arithmetics. It is primarily written in C++ to promote execution speed, while the module pyMC includes Python binders through pybind11.
Expression trees in MC++ can comprise any finite combination of unary and binary operations from a default library and are described by direct acyclic graphs (DAGs). MC++ also features a mechanism to extend DAGs with external operations, currently including affine and polynomial subexpressions as well as multi-layer perceptrons (MLP) and nested DAGs. Through the library CRONOS, MC++ can also be extended with systems of algebraic and differential equations. Expression trees generated with MC++ can be used by the library CANON for local and global numerical optimization; and the library MAGNUS for the development and analysis of mathematical models.
The present version 5.0 of MC++ has capability for:
- Construction and differentiation of expression trees (both forward and reverse accumulation modes)
- Recursive decomposition of factorable expressions into linear/polynomial subexpressions and transcendental operations
- Specification of nested expression trees to enable tailored bounding strategies
The main bounding components in version 5.0 of MC++ include:
- Interval arithmetic
- Eigenvalue arithmetic
- Ellipsoidal arithmetic
- McCormick relaxations
- Taylor and Chebyshev models
- Polyhedral relaxations
- Superposition relaxations
A range of python scripts and notebooks are provided in notebook subdirectory to illustrate these capabilities.
Setting up MC++
Refer to INSTALL.md for instructions.
Contacts
- Repo owner: Benoit C. Chachuat
- OMEGA Research Group
References
- Bompadre, A., A. Mitsos, Convergence rate of McCormick relaxations, Journal of Global Optimization 52(1), 1-28, 2012
- Bompadre, A., A. Mitsos, B. Chachuat, Convergence analysis of Taylor models and McCormick-Taylor models, Journal of Global Optimization, 57(1), 75-114, 2013
- Bongartz, D., J. Najman, S. Sass, A. Mitsos, MAiNGO – McCormick-based Algorithm for mixed-integer Nonlinear Global Optimization, Technical Report, Process Systems Engineering (AVT.SVT), RWTH Aachen University, 2018
- Chachuat, B, B. Houska, R. Paulen, N. Peric, J. Rajyaguru, M.E. Villanueva, Set-theoretic approaches in analysis, estimation and control of nonlinear systems, IFAC-PapersOnLine, 48(8), 981-995, 2015
- Karia, T., C.S. Adjiman, B. Chachuat, Assessment of a two-step approach for global optimization of mixed-integer polynomial programs using quadratic reformulation, Computers & Chemical Engineering, 165, 107909, 2022
- Mitsos, A., B. Chachuat, P.I. Barton, McCormick-based relaxations of algorithms, SIAM Journal on Optimization, 20(2):573-601, 2009
- Rajyaguru, J., Villanueva M.E., Houska B., Chachuat B., Chebyshev model arithmetic for factorable functions, Journal of Global Optimization, 68, 413-438, 2017
- Tsoukalas, A., A. Mitsos, Multi-variate McCormick relaxations, Journal of Global Optimization, 59(2), 633-662, 2014
- Villanueva, M.E., Set-Theoretic Methods for Analysis, Estimation and Control of Nonlinear Systems, PhD Thesis, Department of Chemical Engineering, Imperial College London, 2016
- Villanueva, M.E., J. Rajyaguru, B. Houska, B. Chachuat, Ellipsoidal arithmetic for multivariate systems, Computer Aided Chemical Engineering, 37, 767-772, 2015
- Wechsung, A., P.I. Barton, Global optimization of bounded factorable functions with discontinuities, Journal of Global Optimization, 58(1), 1-30, 2014
- Y Zha, Y., M.E. Villanueva, B. Houska, B. Chachuat Relaxation via Separable Estimators: Arithmetic and Implementation, arXiv preprint arXiv:2605.10854, 2026
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymcpp-5.0.0.tar.gz.
File metadata
- Download URL: pymcpp-5.0.0.tar.gz
- Upload date:
- Size: 6.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e5d3f3d9294909c147c1f83a431043bd8f0a3601e489856398b23286e0b17c
|
|
| MD5 |
ca9afe2b0622c37abc5026e16b59cdf1
|
|
| BLAKE2b-256 |
5ee37f8c3817dad042055ecfaaed412cee34d91e4466b5e5076d3d333c8ff56e
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0.tar.gz:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0.tar.gz -
Subject digest:
76e5d3f3d9294909c147c1f83a431043bd8f0a3601e489856398b23286e0b17c - Sigstore transparency entry: 2203558068
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 46.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816e59afc827e40f1c18e5fe56bba60ae60ffafee0ef263e0957cde17ba83af3
|
|
| MD5 |
6bd112adaaa3e8ac9defad5350121ab5
|
|
| BLAKE2b-256 |
6995c7a50aa18b615f62142b69863d385717b9bbd84636be808ecef9455776e8
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
816e59afc827e40f1c18e5fe56bba60ae60ffafee0ef263e0957cde17ba83af3 - Sigstore transparency entry: 2203558082
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp313-cp313-macosx_14_0_arm64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp313-cp313-macosx_14_0_arm64.whl
- Upload date:
- Size: 15.2 MB
- Tags: CPython 3.13, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3e0c0aa62216eeb3ecc151116fbc0c40c954b0076a3a01e970d0599fbdb1163
|
|
| MD5 |
8f2453903c2e7aadbe94cf78c8446f4d
|
|
| BLAKE2b-256 |
3fd492a2ffb35cfec1071d803b44c67857a433afea9652991138c8b27f5b8423
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp313-cp313-macosx_14_0_arm64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp313-cp313-macosx_14_0_arm64.whl -
Subject digest:
a3e0c0aa62216eeb3ecc151116fbc0c40c954b0076a3a01e970d0599fbdb1163 - Sigstore transparency entry: 2203558089
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 46.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6694f821e622976855d7c5cecf449afff5d4d21563dea4134001b5c19995b3a3
|
|
| MD5 |
1ce66d93fdc114bced7275c13c6e5115
|
|
| BLAKE2b-256 |
e4e29c9877e2ec2dd91c17d1121f44a2535d9aff04bbfa3690edde4a212f9df3
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
6694f821e622976855d7c5cecf449afff5d4d21563dea4134001b5c19995b3a3 - Sigstore transparency entry: 2203558109
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp312-cp312-macosx_14_0_arm64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp312-cp312-macosx_14_0_arm64.whl
- Upload date:
- Size: 15.2 MB
- Tags: CPython 3.12, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78484f8551290ff400195b8382ebe32ec88b783d9257d12eb366034332619ad5
|
|
| MD5 |
511790a1c1fdaf548e941e13b1843865
|
|
| BLAKE2b-256 |
a507611a30a9f7e3698824d8b39a490848b138cd7f0ad02507cd73878b414554
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp312-cp312-macosx_14_0_arm64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp312-cp312-macosx_14_0_arm64.whl -
Subject digest:
78484f8551290ff400195b8382ebe32ec88b783d9257d12eb366034332619ad5 - Sigstore transparency entry: 2203558103
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 47.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb9089c1888f255b028dae5665e1c99848c75c9f006035f1b4be126bf9b23f3
|
|
| MD5 |
1235f7864b6d0aee58cfa07065479af1
|
|
| BLAKE2b-256 |
d0ec4f9e4cf2e9138168f660026a3092432ae59b282cfd4e1403e83da8c63302
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
5cb9089c1888f255b028dae5665e1c99848c75c9f006035f1b4be126bf9b23f3 - Sigstore transparency entry: 2203558093
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp311-cp311-macosx_14_0_arm64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp311-cp311-macosx_14_0_arm64.whl
- Upload date:
- Size: 15.2 MB
- Tags: CPython 3.11, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e43b4b2d1e78180f9550f4e62d4a5991eb7fe853227a3213aade75a2b6dfba
|
|
| MD5 |
c50a0580c27e8e81314a30ebb7fb646c
|
|
| BLAKE2b-256 |
83aa623ae11aa4f070f07b7dc1c99e6694d4781e4e1dde7b7ff677f4b7fa6224
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp311-cp311-macosx_14_0_arm64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp311-cp311-macosx_14_0_arm64.whl -
Subject digest:
b8e43b4b2d1e78180f9550f4e62d4a5991eb7fe853227a3213aade75a2b6dfba - Sigstore transparency entry: 2203558075
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 47.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.27+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bc03356be0bfd1b89f1b4aa400a0d9fe80d0493de44414bf532d08b75943549
|
|
| MD5 |
8b57408865659968aabf0b46a9440c99
|
|
| BLAKE2b-256 |
e6ee9a6b74e0df98bec26a6ca0a44340dd47d9ecca117ac2a3d8e9212a7ac8b7
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
2bc03356be0bfd1b89f1b4aa400a0d9fe80d0493de44414bf532d08b75943549 - Sigstore transparency entry: 2203558078
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file pymcpp-5.0.0-cp310-cp310-macosx_14_0_arm64.whl.
File metadata
- Download URL: pymcpp-5.0.0-cp310-cp310-macosx_14_0_arm64.whl
- Upload date:
- Size: 15.2 MB
- Tags: CPython 3.10, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e98328b661f7535d83b34f116e9be2f8fd1463514c0b975e8ecaf2ba640a34
|
|
| MD5 |
1312b12f0e455a473655ec97b1f69b21
|
|
| BLAKE2b-256 |
b4d76506d8560bc8ca1125f86a526c90d78bec03b315769392fb03ad03e84edb
|
Provenance
The following attestation bundles were made for pymcpp-5.0.0-cp310-cp310-macosx_14_0_arm64.whl:
Publisher:
wheels.yml on omega-icl/mcpp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pymcpp-5.0.0-cp310-cp310-macosx_14_0_arm64.whl -
Subject digest:
21e98328b661f7535d83b34f116e9be2f8fd1463514c0b975e8ecaf2ba640a34 - Sigstore transparency entry: 2203558097
- Sigstore integration time:
-
Permalink:
omega-icl/mcpp@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/omega-icl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@c9591a957c913ab44ba29f574de3c64c6db64bfc -
Trigger Event:
push
-
Statement type: