help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] random seed in glpsol


From: Brady Hunsaker
Subject: Re: [Help-glpk] random seed in glpsol
Date: Tue, 18 Jan 2005 00:02:27 -0500
User-agent: Mozilla Thunderbird 0.9 (X11/20041124)

Marijn Heule wrote:
Hello,

Is there any possibility to set the random seed in glpsol?

Greetings,

Marijn Heule



There is a function rng_init_rand in glprng.c. However, the "automatic" use of the random number generator is begun in glpmpl4.c, where rng_create_rand is used. This routine appears in glprng.c and calls rng_init_rand with a fixed seed of 0.

If you wanted to change this, you would need to modify rng_create_rand in glprng.c and probably glpmpl4.c if you wanted to specify the seed in the MathProg file. The worst part might be adding the parsing code for whatever new command you add to MathProg to specify a seed.

Brady




reply via email to

[Prev in Thread] Current Thread [Next in Thread]