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:1+2 =



Original Message (ID '61485') By Vadim:
Thank you for your help Bill and Peter! That wasn't exactly what I was looking for but I better understand how to formulate my problem now: The general problem that I wanted to attack was for parameters a,b,n, that are fixed between 0 and 1, what are the optimal choices of c1 and c2? Is there an algorithm in Mathematica that allows you to sample a range of parameters, say 10 points in the interval (0,1) for a,b,n and find optimal c1 and c2 then? (Where a and b are replacing .5 and .7 respectively) Maximize[{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) // Rationalize, 0 <= c1 <= 1 && 0 <= c2 <= 1 && 0 <= n <= 1 && 0 <= q <= 1}, {c1, c2}];