Optimization can't be stopped

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Shuaijie Wang
Posts: 2
Joined: Tue Jan 12, 2016 1:10 pm

Optimization can't be stopped

Post by Shuaijie Wang » Wed Feb 17, 2016 10:20 pm

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!

User avatar
Shuaijie Wang
Posts: 2
Joined: Tue Jan 12, 2016 1:10 pm

Re: Optimization can't be stopped

Post by Shuaijie Wang » Thu Feb 18, 2016 4:26 pm

is there a function could force quit the optimization when the evaluation number reached 1000?

I tried stopMaxFunEvals (int) , it not works.

Thanks!

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: Optimization can't be stopped

Post by jimmy d » Fri Feb 26, 2016 11:03 am

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.

User avatar
Namrata Kaundal
Posts: 9
Joined: Fri Mar 18, 2016 4:03 am

Re: Optimization can't be stopped

Post by Namrata Kaundal » Fri Mar 18, 2016 5:12 am

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.

POST REPLY