Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Bcons during Maximization"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:3+3 =



Original Message (ID '61704') By Bill Simpson:
In Response To 'Re: Bcons during Maximization' --------- In[1]:= Table[ {a=RandomReal[{0,1}], b=RandomReal[{0,1}], n=RandomReal[{0,1}], NMaximize[{n-(1-n)-q (n a c1^2-(1-n) b c2^2+(n (1-a)-(1-n) (1-b))/2)*(n a c1^2+(1-n) b c2^2+(n (1-a)+(1-n) (1-b))/2),0<=c1 Sqrt[1-c2^2]-c2 Sqrt[1-c1^2]≤1,0≤c1≤1&&0≤c2≤1&&0≤q≤1},{c1,c2,q}]},{5}] Out[1]={ {0.1848, 0.7280, 0.9055, {0.8111, {c1->0.2072, c2->0.1887, q->8.3545*^-9}}}, {0.4250, 0.9973, 0.2408, {0.0270, {c1->1., c2->1., q->1.`}}}, {0.0211, 0.1781, 0.7942, {0.5884, {c1->0.4193, c2->0.2297, q->1.3408*^-10}}}, {0.1551, 0.1260, 0.8147, {0.6295, {c1->0.4520, c2->0.1499, q->4.3101*^-8}}}, {0.2600, 0.7878, 0.0715, {-0.1701, {c1->1., c2->1., q->1.}}}}