Re: minimize's constraint
- To: mathgroup at smc.vnet.net
- Subject: [mg107781] Re: minimize's constraint
- From: dh <dh at metrohm.com>
- Date: Thu, 25 Feb 2010 17:38:15 -0500 (EST)
- References: <hm5rbi$1tm$1@smc.vnet.net>
Hi, the variable c3 in the constrain does not appear in your function. maybe the constrain should read: (c0^2+c1^2+c2^2)=1. The your problem would be written: Minimize[{(c0^2+c1^2+c2^2)(0.0765)+0.0916(c0*c1)-0.0916(c1*c2)-0.021(c0*c2), (c0^2+c1^2+c2^2)==1 },{c0,c1,c2} ] Daniel On 25.02.2010 13:44, shama shahbaz wrote: > hi i have an objective function with constraints as below > (c0^2+c1^2+c2^2)(0.0765)+0.0916(c0*c1)-0.0916(c1*c2)-0.021(c0*c2) > subject to > (c0^2+c1^2+c2^c3)=1 > i don't how to solve it using minimize because it contain '=' constraint. > can anybody tell me how to solve it > Thankyou > > -- Daniel Huber Metrohm Ltd. Oberdorfstr. 68 CH-9100 Herisau Tel. +41 71 353 8585, Fax +41 71 353 8907 E-Mail:<mailto:dh at metrohm.com> Internet:<http://www.metrohm.com>