Is there a way to set the seed for the random number generator so that every time I run a Ray Trace analysis I get the exact same results?
Using OpticStudio 22.1 Professional
Is there a way to set the seed for the random number generator so that every time I run a Ray Trace analysis I get the exact same results?
Using OpticStudio 22.1 Professional
Best answer by Mark.Nicholson
Use Sobol Sampling. That will give a ‘uniformly random’ rays that is used every time you trace rays
Note when you optimize, OS uses the same random number generator, so if you evaluate the merit function twice without making changes you get the same results. You don’t need to use Sobel in this case, although it is still useful.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.