what is the meaning of m_warmstartingFactor

qingteng
Posts: 14
Joined: Tue Jul 06, 2010 5:20 pm

what is the meaning of m_warmstartingFactor

Post by qingteng »

Hi, I found that the parameter, m_warmstartingFactor, has great impact on the result of simulation.But I don't understand the meaning of this paramter completely.

Who could kindly give me more information about this parameter. Many thanks.

The line about m_warmstartingFactor in my code is:
dynamicsWorld->getSolverInfo().m_warmstartingFactor = 2;
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: what is the meaning of m_warmstartingFactor

Post by Erwin Coumans »

The warmstartfactor scales the previous solution (applied impulse) in the constraint solver.

Using a value of zero means there is no warm starting, and a value of 1 means the constraint solver starts with the previous solution (default).
Using a value larger than 1 is similar to successive overrelaxation, see http://en.wikipedia.org/wiki/Successive_over-relaxation

It is best to leave the value to default, unless you want to make effort to do a lot of tuning.
Thanks,
Erwin
qingteng
Posts: 14
Joined: Tue Jul 06, 2010 5:20 pm

Re: what is the meaning of m_warmstartingFactor

Post by qingteng »

Erwin, thank you sincerely for your reply.