Re: Wow to recreate equal runnig conditions...
jon klein <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On May 9, 2004, at 10:34 AM, Thorolf Tonjum wrote: > To enable equal runnig conditions for each test of the genetic > algorithm, > I need to reset the time counter, as the timeseries must be equal to > produce equal joint movements. > > by using this psedo technique : > > equalTime = 0. > equalTime = (self get-time). > > Then using : > : ((self get-time) - equalTime) > for each run, does not produce equal runs, but produces artifacts.. : The timesteps in breve are controlled by the integrator, and are not guaranteed to always be the same. Instead, they can be chosen by the integrator in order to minimize simulation error. If you want to keep a consistent and exact count, you might want to have your controller keep an iteration count. In it's iterate method, you would increment the value, and then provide a method that other objects could use to retrieve the value. - jon klein _______________________________________________ breve mailing list [email protected] http://www.spiderland.org/mailman/listinfo/breve