Message Boards Message Boards

[?] Perform optimization with a strange constraint?

Posted 6 years ago

Consider the following code:

Table[NMaximize[{NIntegrate[(a*(1 - 0.25*z - (1 - 0.25)*x)*x + 
           a*(0.25*z - y + (1 - 0.25)*x)*y)/b, {a, 0, b}], 
       z = Min[1, (x - y*0.3)/(1 - 0.3)], b*(1 - y) <= 1, 
       0 <= y <= x <= 1}, {x, y}], {b, 1, 1.5, 0.1}]

I am trying to numerically solve an optimization problem (for x and y, for some b values). The problem has an integration in it. Interestingly, there is another variable z, which is a function of x and y, but cannot be greater than 1 (therefore I use Min function). Integration have issues because of the Min function. Any ideas?

Cheers, Ovunc

POSTED BY: Ovunc Yilmaz
2 Replies
Posted 6 years ago
POSTED BY: Ovunc Yilmaz
Posted 6 years ago
POSTED BY: Peter Fleck
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract