[Top][All Lists]

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

Re: [Help-glpk] Random Number seeds

From: Andrew Makhorin
Subject: Re: [Help-glpk] Random Number seeds
Date: Mon, 7 Dec 2009 23:15:37 +0300

> Within GMPL (i.e., MathProg) , is there a simple way to set the
> seed  for psuedo-random number generation? I #39;d like to be able
> to randomize the starting point to stress test an example I #39;m
> developing.

Currently the seed function is not implemented. However, you may
skip some pseudo-random numbers as follows:

param SEED := 1000;
check sum{1..SEED} Uniform01() > 0;

This is not elegant though works.

reply via email to

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