Message Boards Message Boards


How to maximize a integral function of multiple variable?

Posted 1 month ago
0 Replies
0 Total Likes

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?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract