[SciPy-user] How to determine if a function is convex or not ?
Mon Jun 18 03:54:52 CDT 2007
there are many ways to determine if a function is convex, but not a single
best check for
all circumstances. Perhaps the simplest approach is to verify that the
is positive semidefinite everywhere by construction, or to use composition
If you want to use CVXOPT for a general convex problem you first have to
the problem is actually convex (of course), and then you have to provide
functions for evaluating
first and second order derivatives, which sounded problematic in your case.
What about the general nonlinear programming package someone else
suggested? That might
work for you (provided you figure out how to evaluate derivatives, which
can be cumbersome
but should be possible nevertheless).
On 6/18/07, firstname.lastname@example.org <email@example.com> wrote:
> Hi all,
> CVXOPT(http://abel.ee.ucla.edu/cvxopt) can handle both equality and
> inequality constraints, but it can only deal with convex functions.
> So I want to know how to determine if a function is convex or not. Are
> there some rules for this? Or I have to calculate the derivatives ?
> Xiao Jianfeng
> SciPy-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user