Mathematica Asked by blackbird_h71 on June 10, 2021
How can I override the AccuracyGoal parameter in NMinimize? Instead of the evaluation stopping at the required Accuracy, I want it to stop after a specific number of iterations, even if the AccuracyGoal is not reached.
I tried the following example code, but it doesn’t stop after 100 iterations.
NMaximize[{Norm[Array[c1, 10], Infinity]+Norm[Array[d1, 10], Infinity],
And @@ Table[-1 <= c1[i] <= 1, {i, 1,10}] && And @@ Table[-1 <= d1[i] <= 1, {i, 1, 10}]},
Flatten[{Array[c1, 10], Array[d1, 10]}],Method -> "SimulatedAnnealing",MaxIterations -> 100];
This question is similar to my query, but is yet to be answered.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP