[SciPy-User] Soecifying Inequality constraints as a penalty term to the objective function for fmin, l_bfgs, cobyla etc.,

jagan prabhu jagan_cbe2003@yahoo.co...
Wed Dec 2 11:46:41 CST 2009

Hi all,

I like to specify my inequality constraints as penalty term to my objective function for the case of fmin or l_bfgs or for any optimization methods in scipy.

For example: please see the attached *.py file

Problem may be simple, but i need to write a penalty term for my inequality constraints to the objective function and solve the problem.

Constraints are x>=y and u>=v

How to write a penalty term for my constraints and include that it my objective function and solve the optimization using any Scipy optimization method?

Please help me.


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20091202/49fda6ad/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Inequality constraints.py
Type: text/x-python
Size: 929 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-user/attachments/20091202/49fda6ad/attachment.py 

More information about the SciPy-User mailing list