cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

求助,在教程的求解教程中的最优化函数里,得到的结果不一样。

nlan
1-Newbie

求助,在教程的求解教程中的最优化函数里,得到的结果不一样。

在教程的求解教程中的最优化函数里,得到的结果xmax不一样.

3 REPLIES 3
nlan
1-Newbie
(To:nlan)

FPIO2]6V6XX@RYM_Y7}((MG.png

RichardJ
19-Tanzanite
(To:nlan)

The tutorial is wrong. With a guess value of 30 the answer should be 32.19.

Werner_E
24-Ruby V
(To:nlan)

I am not sure what your question is?

In case you are confused because maximize did not return x=0, the absolute maximum: "maximize" is a numerical algorithm which will always return a LOCAL maximum within a certain numerical tolerance. The value you end up with depends on the guess value.

If you search for absolute maxima and minima you may be interested in Minimizing a Function using Simulated Annealing

BTW, you don't need to use a solve block if you use maximize without any constraints:

Regards

Werner

Top Tags