Constrained Optimization Visualization Toolbox

Version 3.0 (67,7 ko) par shahrokh shahi
Two-dimensional constraint optimization using a graphical approach
51 téléchargements
Mise à jour 19 sept. 2021

Constrained Optimization Visualization Toolbox

A toolbox for visualizing the graphical approach in solving 2D constrained optimization problems.

Developed by Shahrokh Shahi
Georgia Institute of Technology
College of Computing


This toolbox is part of the optimization visualizing series that I developed during the optimization class at Georgia Tech. More details about these toolboxes and packages is presented in this blog post.

Particularly, this toolbox can be used to solve the constraint optimization problems by visualizing the constraints over an arbitrary two variable function and obtaining the optimum value(s). The constraints can be in the form of equality, inequality and box constraints, and the user can easily define the functions and choose the colors to obtain a clear vision of the problem at hand. This toolbox can serve as an effective educational demo in the optimization courses.

Sample run

Install the toolbox on MATLAB

  • Run "FMinConGraphic.mltbx" in MATLAB and complete the installation
  • Run fmincongraphic in MATLAB command window
  • Enjoy! (The app will be run with a pre-set values as an example)


  • The source codes are also available in src folder.
  • Please note that the GUI is built and tested in Windows; there might be some visual differences in macOS (for instance, the test may appear smaller)
  • Please feel free to contact me if there is any problem or questions.

Citation pour cette source

shahrokh shahi (2024). Constrained Optimization Visualization Toolbox (, GitHub. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2021a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.