1.0

1.0 | 2 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.46 KB File ID: #23106

convexchecker

by Bapi Chatterjee

 

25 Feb 2009 (Updated 13 Mar 2009)

It checks real valued multidimensional function, whether it is convex.

| Watch this File

File Information
Description

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.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
25 Feb 2009 Petter

This is not a function, just a script with no help files and no comments. I also got error messages when I tried to run it.

26 Feb 2009 us

in its current form, this submission is spam:
- no help
- no comments
- no suggestions during runtime when inscrutable errors occur
- and -most tedious- it clears the workspace without warning
us

Please login to add a comment or rating.
Updates
26 Feb 2009

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.

26 Feb 2009

A very small mistake was rectified.

13 Mar 2009

A small error was rectified

Tag Activity for this File
Tag Applied By Date/Time
optimization Bapi Chatterjee 25 Feb 2009 14:08:15
finance Bapi Chatterjee 25 Feb 2009 14:08:15
convex Bapi Chatterjee 25 Feb 2009 14:08:15
hessian Bapi Chatterjee 25 Feb 2009 14:08:15
mathematical programming Bapi Chatterjee 25 Feb 2009 14:08:15
gradient Bapi Chatterjee 25 Feb 2009 14:08:15
matrix Bapi Chatterjee 26 Feb 2009 13:11:26
positive definite Bapi Chatterjee 26 Feb 2009 13:11:26

Contact us at files@mathworks.com