Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Bcons during Maximization' topicStudent Support Forum > General > Archives > "Bcons during Maximization"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
10/12/12 1:55pm

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.}}}}

URL: ,

Subject (listing for 'Bcons during Maximization')
Author Date Posted
Bcons during Maximization Vadim 10/10/12 3:35pm
Re: Bcons during Maximization Bill Simpson 10/11/12 12:26pm
Re: Bcons during Maximization Peter Pein 10/11/12 12:46pm
Re: Bcons during Maximization Vadim 10/12/12 08:33am
Re: Re: Bcons during Maximization Bill Simpson 10/12/12 1:55pm
Re: Bcons during Maximization Vadim 10/16/12 4:03pm
Re: Re: Bcons during Maximization Bill Simpson 10/17/12 11:18am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic