Message Boards Message Boards

How to maximize a integral function of multiple variable?

Posted 2 years ago

I am trying to maximize an integral function (optval) of multiple variables. I am using NumericQ for symbolic evaluation of NIntegrate. The code is running well when I manually assign values to variables (Q1, Q2, Q3) and gives the output for the integral function (optval) within a few seconds.

Output after putting values manually

But maximizing the same integral function for variables Q1, Q2, Q3 using Nmaximize is not working and the code runs indefinitely.

Nmaximize function for multiple integral function

I have attached the code file seperately. Can someone help in rectifying the problem?

Attachments:
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