Student Support Forum: 'Problem with maximize' topicStudent Support Forum > General > "Problem with maximize"

 < Previous Comment Help | Reply To Comment | Reply To Topic
 Author Comment/Response Tom 01/02/09 7:28pm When Mathematica returns exactly what you inputted, it usually means an error has occurred. You can see this error by viewing the Messages window by selecting Window...Messages. In this case, the mistake is that you are specifying constraints for variables that you're not passing to Maximize. Here's the code you want: Maximize[{(1 - pl (1 - ((1 - eta) (1 - q))/((1 - eta) (1 - q) + eta (1 - r))) - ((1 - eta) ph (1 - q))/((1 - eta) (1 - q) + eta (1 - r))) (500 (1 - eta) (1 - q) + 100 eta (1 - r)) + (500 (1 - eta) (1 - q) + 100 eta r) (1 - ( eta pl r)/((1 - eta) q + eta r) - ph (1 - (eta r)/((1 - eta) q + eta r))), 0.01` <= r <= 0.99`, 0.01` <= q <= 0.99`, 0 < eta < 1, 0 < pl < 1, 0 < ph < 1}, {r, q, eta, ph, pl}] Note the change in the last parameter. URL: ,

 Subject (listing for 'Problem with maximize') Author Date Posted Problem with maximize Mahmoud 12/22/08 10:00pm Re: Problem with maximize Tom 01/02/09 7:28pm
 < Previous Comment Help | Reply To Comment | Reply To Topic