lagrange multipliers in python

F

fdu.xiaojf

Hi all,

Sorry for the cross-posting.

I'm trying to find the minimum of a multivariate function F(x1, x2, ...,
xn) subject to multiple constraints G1(x1, x2, ..., xn) = 0, G2(...) =
0, ..., Gm(...) = 0.

The conventional way is to construct a dummy function Q,

$$Q(X, \Lambda) = F(X) + \lambda_1 G1(X) + \lambda_2 G2(X) + ... + \lambda_m
Gm(X)$$

and then calculate the value of X and \Lambda when the gradient of function Q
equals 0.

I think this is a routine work, so I want to know if there are available
functions in python(mainly scipy) to do this? Or maybe there is already
a better way in python?

I have googled but haven't found helpful pages.

Thanks a lot.

Xiao Jianfeng
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top