Skip to main content

A Python toolbox for constrained and multi-fidelity Bayesian optimization

Project description

Tests

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

Prerequisites

SMT-Optim requires the following package to be installed in the Python environment:

  • Numpy
  • SciPy
  • SMT (with the GPX surrogate model)

It can be done via PIP:

pip install numpy scipy smt[gpx]

Installation

  1. Clone the smt-optim repo.

git clone https://github.com/SMTorg/smt-optim.git

  1. Install SMT-Optim to your Python environment.

cd smt-optim

pip install -e .

Usage

Comprehensive examples are available in the documentation:

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:

SMT-Optim documentation

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.

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

smt_optim-0.1.2.tar.gz (72.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smt_optim-0.1.2-py3-none-any.whl (91.7 kB view details)

Uploaded Python 3

File details

Details for the file smt_optim-0.1.2.tar.gz.

File metadata

  • Download URL: smt_optim-0.1.2.tar.gz
  • Upload date:
  • Size: 72.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smt_optim-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6285b41de367ad674bd7774cd347aee63ad40a816cd616dee70dbd639bfdd9c7
MD5 afb8e0520aa5f853316cc53a7455dcdd
BLAKE2b-256 b60374f78c8e72e6bcf7650075167ea7bfa58c579b62d5cf4025ac73be2988b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for smt_optim-0.1.2.tar.gz:

Publisher: release.yml on SMTorg/smt-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smt_optim-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: smt_optim-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 91.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smt_optim-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8cee944d883fac0d50953f897916608e63c71e00434d1e56b05526514e14d091
MD5 ba1ec7070938469dfe18fea666e36118
BLAKE2b-256 cea94c2544233e08d7f9211dd8956fd372b6fdca8bb8136bd1530069e4c1d7fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for smt_optim-0.1.2-py3-none-any.whl:

Publisher: release.yml on SMTorg/smt-optim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page