 
 
 
 
 
 
Re: minimize's constraint
- To: mathgroup at smc.vnet.net
- Subject: [mg107765] Re: [mg107752] minimize's constraint
- From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
- Date: Thu, 25 Feb 2010 17:35:20 -0500 (EST)
- References: <201002251244.HAA01977@smc.vnet.net>
Hi,
if you want an equality, then you have to use "equal" (==) and not
Set (=)
eq = (c0^2 + c1^2 + c2^2) (0.0765) + 0.0916 (c0*c1) - 0.0916 (c1*c2) -
    0.021 (c0*c2);
constr = (c0^2 + c1^2 + c2^c3) == 1;
Minimize[{eq, constr}, {c0, c1, c2, c3}]
Cheers
Patrick
Am Feb 25, 2010 um 1:44 PM schrieb shama shahbaz:
> 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
>
>
- References:
- minimize's constraint
- From: shama shahbaz <shammashahbaz@yahoo.com>
 
 
- minimize's constraint

