Simple example of the Simplex Method

It's a function that finds the minimum value of a two variables function with the simplex method.
2.8K Downloads
Updated 22 Feb 2011

View License

% 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
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.1.0.0

Update description

1.0.0.0