[SciPy-User] optimization w/ constraints

Andreas lists@hilboll...
Wed Jun 30 05:24:03 CDT 2010


>> i need to minimize a function in 19 variables x_1, ... x_19, with
>> constraints
>>
>> x_i * a = x_{i+8} i=4,...,11
>>
>> so actually, it's a 12 variable problem, but some of the variables get
>> multiplied with each other ...
>
> I highly recommend simply recoding your function (or wrapping it in
> another function) that will expand from the 12 independent variables
> to the 19.

Yes, of course. I was thinking too complicated ... did it using leastsq()
on the 12 independent variables. Thanks for your suggestion, which pointed
me to my mistake!

cheers,

andreas.



More information about the SciPy-User mailing list