Re: minimize with complex numbers

• To: mathgroup at smc.vnet.net
• Subject: [mg91302] Re: minimize with complex numbers
• From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
• Date: Thu, 14 Aug 2008 07:00:23 -0400 (EDT)
• Organization: The Open University, Milton Keynes, UK
• References: <g7uo0p\$5tq\$1@smc.vnet.net>

```shama shahbaz wrote:

<snip>

> Minimize[{(0.83 u1+0.4 u2-0.25 u3+3 u4+0.16 v1+0.6 v2+1.25 v3-2 v4)2+(2 u1-0.16 u2-0.6 u3-1.25 u4+3 v1+0.83 v2+0.4 v3-0.25 v4)2+(0.4 u1-0.25 u2+3 u3+0.83 u4+0.6 v1+1.25 v2-2 v3+0.16 v4)2+(-1.25 u1+2 u2-0.16 u3-0.6 u4-0.25 v1+3 v2+0.83 v3+0.4 v4)2+(-0.25 u1+3 u2+0.83 u3+0.4 u4+1.25 v1-2 v2+0.16 v3+0.6 v4)2+(-0.6 u1-1.25 u2+2 u3-0.16 u4+0.4 v1-0.25 v2+3 v3+0.83 v4)2+(3 u1+0.83 u2+0.4 u3-0.25 u4-2 v1+0.16 v2+0.6 v3+1.25 v4)2+(-0.16 u1-0.6 u2-1.25 u3+2 u4+0.83 v1+0.4 v2-0.25 v3+3 v4)2},{u1>0,v1>0,u2>0,v2>0,u3>0,v3>0,u4>0,v4>0},{u1,v1,u2,v2,u3,v3,u4,v4}]
>
> The error is
> Minimize::vdom : Variable domain {u1,v1,u2,v2,u3,v3,u4,v4} should be either Reals or Integers.
> i didnt understand it can anybody tell me what should i do .

You have a spurious closing curly bracket at the end of the objective

Minimize[{(0.83 u1 + 0.4 u2 - 0.25 u3 + 3 u4 + 0.16 v1 + 0.6 v2 +
1.25 v3 - 2 v4)
2 + (2 u1 - 0.16 u2 - 0.6 u3 - 1.25 u4 + 3 v1 + 0.83 v2 +
0.4 v3 - 0.25 v4)
2 + (0.4 u1 - 0.25 u2 + 3 u3 + 0.83 u4 + 0.6 v1 + 1.25 v2 -
2 v3 + 0.16 v4)
2 + (-1.25 u1 + 2 u2 - 0.16 u3 - 0.6 u4 - 0.25 v1 + 3 v2 +
0.83 v3 + 0.4 v4)
2 + (-0.25 u1 + 3 u2 + 0.83 u3 + 0.4 u4 + 1.25 v1 - 2 v2 +
0.16 v3 + 0.6 v4)
2 + (-0.6 u1 - 1.25 u2 + 2 u3 - 0.16 u4 + 0.4 v1 - 0.25 v2 +
3 v3 + 0.83 v4)
2 + (3 u1 + 0.83 u2 + 0.4 u3 - 0.25 u4 - 2 v1 + 0.16 v2 +
0.6 v3 + 1.25 v4)
2 + (-0.16 u1 - 0.6 u2 - 1.25 u3 + 2 u4 + 0.83 v1 + 0.4 v2 -
0.25 v3 + 3 v4) 2, {u1 > 0, v1 > 0, u2 > 0, v2 > 0, u3 > 0,
v3 > 0, u4 > 0, v4 > 0}}, {u1, v1, u2, v2, u3, v3, u4, v4}]

Regards,
-- Jean-Marc

```

• Prev by Date: NDSolve precision and velocity problem
• Next by Date: Re: DO loop
• Previous by thread: minimize with complex numbers
• Next by thread: Re: minimize with complex numbers