convexchecker

It checks real valued multidimensional function, whether it is convex.
1.4K Downloads
Updated 13 Mar 2009

View License

This script may be easily converted to a function which could be an extremely useful subroutine in optimization problems to check whether the objective function is globally convex. It may also be used to derive the expressions for gradient and Hessian of the given multidimensional real valued function along with giving their values at the point entered. It uses Sylvester's criterion to check positive definiteness of the Hessian, as it checks whether all the principal minors of the Hessian are positive.

Cite As

Bapi Chatterjee (2024). convexchecker (https://www.mathworks.com/matlabcentral/fileexchange/23106-convexchecker), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.5.0.0

A small error was rectified

1.4.0.0

A very small mistake was rectified.

1.3.0.0

Actually there were no problems as such in the code except perhaps no help description was written. Now a good help description has been written. Also robust error checks have been added.

1.0.0.0