Message Boards Message Boards

0
|
2529 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Use Table function as part of the Cost Function in FindMaximum?

Posted 5 years ago

Can anyone help me how can I use loops inside of optimization functions? For example:

Mp = Table[r^2, {r, 10}]
rez4 = FindMaximum[{Mp[r], 4 <=Mp[r] <= 80 }, { r, 10}]

Thank you!

POSTED BY: Jurij Hladnik
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