Simple example of the Simplex Method
% It's a function that finds the minimum value of a two variables objective
% function with a deterministic zero order algorithm: simplex method.
% The input variables are:
%-fun: inline function of the objective function
%-init_point: initial point for the simplex method
%-step_size: initial dimension of the simplex
%toll: tolerance for the stop criterion on the simplex dimension
%-numMaxIter: stop criterion on the maximum number of iterations
% The output variables are:
%-valFunc: the minumum value of the objective function
%-var_min: the minimum point
%-iter: the number of iteration made
%%%%%%%% IMPORTANT %%%%%%%%%%%
% To run correctly the Matlab function, you must run first a contour plot
% of the objective function. You can also view: help countour.
Cite As
Andrea Cirillo (2026). Simple example of the Simplex Method (https://www.mathworks.com/matlabcentral/fileexchange/30481-simple-example-of-the-simplex-method), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Reporting and Database Access > MATLAB Report Generator > Report Generator Development > Content Generation > Page Layout >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
