Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.1K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Evaluate global maxima

Posted 5 years ago
Attachments:
POSTED BY: abhishek sharma
2 Replies
Posted 5 years ago

The documentation for FindMaximum states in the first line: "searches for a local maximum in f, starting from an automatically selected point." So you can't necessarily get there from here.

However, Maximize guarantees a global maximum for certain kinds of functions.

POSTED BY: Jim Baldwin

Well, as it is written in the documentation, the function FindMaximum "searches for a local maximum" and it is not a surprise that it actually finds only a local maximum when called.

I suggest using the Maximize function:

Maximize[{fx , - Pi / 2 <= phi <= Pi / 2}, phi]

At least in my experiments it evaluated to the global maximum.

POSTED BY: Nikolay Shilov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard