Hi,
In my simulation, I set the optimizer iteration as 1000, but the optimization can't be stopped even when the step count reached 2000.
I am very confused about this problem? anyone can give me some suggestion?
here is my code:
Optimizer opt(sys, SimTK::LBFGSB);
opt.setConvergenceTolerance(0.05);
opt.useNumericalGradient(true);
opt.setMaxIterations(1000);
opt.setLimitedMemoryHistory(500);
Also, I set the lower_bound as -1, the upper_bound as 2, is it ok?
Thanks!
Optimization can't be stopped
- Shuaijie Wang
- Posts: 2
- Joined: Tue Jan 12, 2016 1:10 pm
Re: Optimization can't be stopped
is there a function could force quit the optimization when the evaluation number reached 1000?
I tried stopMaxFunEvals (int) , it not works.
Thanks!
I tried stopMaxFunEvals (int) , it not works.
Thanks!
Re: Optimization can't be stopped
There may be some examples of this in the Simbody code. These optimizations are getting done via Simbody, so that would be the place to look.
- Namrata Kaundal
- Posts: 9
- Joined: Fri Mar 18, 2016 4:03 am
Re: Optimization can't be stopped
I've stopped the optimize process a number of times in the past, without adverse effects. However, I did have a backup available in case of problems.