SMT-optim: A Python toolbox for constrained and multi-fidelity Bayesian optimization
Introduction
SMT-optim is an open-source Python package for Bayesian optimization developed for research applications. It is well suited to expensive-to-evaluate black-box problems that offer limited exploitable structure, such as derivative information. The package supports constrained and multi-fidelity global optimization for mixed-variable design spaces.
Cite us
To cite SMT-optim:
@techreport{cordelier_etal_2026,
author = {Cordelier, Oihan and Diouane, Youssef and Bartoli, Nathalie and Laurendeau, Eric},
title = {Multi-fidelity approaches for general constrained Bayesian optimization with application to aircraft design},
institution = {{GERAD}},
year = 2026,
type = {Cahier du GERAD},
number = {G-2026-17},
address = {Montr\'eal, QC, Canada},
doi = {10.48550/arXiv.2603.28987}
}
@inproceedings{cordelier_etal_2025,
author = {Cordelier, Oihan and Diouane, Youssef and Bartoli, Nathalie and Laurendeau, Eric},
title = {{Multi-Fidelity Constrained Bayesian Optimization with Application to Aircraft Wing Design}},
booktitle = {{AIAA AVIATION FORUM AND ASCEND 2025}},
year = {2025},
address = {Las Vegas, Nevada},
month = jul,
publisher = {American Institute of Aeronautics and Astronautics},
doi = {10.2514/6.2025-3474}
}
Focus on constrained Bayesian optimization
SMT-optim supports both equality and inequality blackbox constraints. For each constraint, it builds a surrogate model and uses it during acquisition function optimization. The acquisition function can be optimized either with respect to the surrogate mean prediction or by penalizing it with the probability of feasibility. The SMT-optim interface also allows users to define both lower and upper bounds for each black-box constraint.
Focus on multi-fidelity
SMT-optim is designed for multi-fidelity optimization with hierarchical fidelity levels to reduce computational cost. The MFSEGO acquisition strategy judiciously selects low- and high-fidelity evaluations when sampling the blackbox functions. Currently, SMT-optim offers two state-of-the-art multi-fidelity frameworks: MFSEGO for nested design spaces and VF-PI for non-nested design spaces. Both frameworks can be further customized with specific acquisition functions and framework-specific parameters.
Focus on mixed-variable
SMT-optim supports continuous, integer, and categorical variables. It relies on SMT's Design Space to define mixed-variable design spaces and on SMT's surrogate models to accurately represent the quantities of interest with respect to their input variables.
Focus on a modular framework
SMT-optim is designed to be modular, allowing users to swap components such as surrogate models, acquisition strategies, and acquisition functions while maintaining a consistent overall structure that is well suited to research benchmarking. The package also offers a straightforward interface through the minimize method, enabling seamless implementation and automatically selecting an appropriate optimization framework based on the characteristics of the problem.
Getting started
Installation
SMT-optim can be installed directly from the Python Package Index:
pip install smt-optim
Usage
Comprehensive examples are available in the documentation:
- Unconstrained optimization
- Constrained optimization
- Multi-fidelity optimization
- Mixed variable optimization
import numpy as np
from smt_optim import minimize
def xsinx(x):
return (x - 3.5) * np.sin((x - 3.5) / (np.pi))
bounds = np.array([
[0, 25]
])
state = minimize([xsinx], bounds, max_iter=12, driver_kwargs={"seed": 0})
best_sample = state.get_best_sample()
print(best_sample)
Documentation
The documentation is available online:
License
Copyright 2026 SMT-optim contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for smt-optim 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smt_optim-0.1.3.tar.gz | 78.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smt_optim-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 179.0 kB
Release files / smt_optim-0.1.3.tar.gz
| Download URL | smt_optim-0.1.3.tar.gz |
|---|---|
| Size | 78.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8b8f2d1b5639844b550070a04d87a5c532de1d52ec208629d5d0bf2a60136ce
|
|
BLAKE2b-256 checksum How to use checksums |
25306e1540f6104b368e082d1627d83e337e2b712f2e34883dd59002db6e6279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.
Transparency logRelease files / smt_optim-0.1.3-py3-none-any.whl
| Download URL | smt_optim-0.1.3-py3-none-any.whl |
|---|---|
| Size | 100.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9749d2819654d6b1ea58283efbbdfdb82a5677d688fd870aa0d6e9ac353f31dd
|
|
BLAKE2b-256 checksum How to use checksums |
ae98d86568d967f0d302d5bdd5abc33d81921f7a0119a718e6e53cf1c59a6e10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.
Transparency log