[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Re: Random number seed
From: |
glpk xypron |
Subject: |
[Help-glpk] Re: Random number seed |
Date: |
Fri, 09 Jul 2010 08:44:28 +0200 |
Hello Jeffrey,
you are right, the option is:
--seed value initialize pseudo-random number generator used in
MathProg model with specified seed (any integer);
if seed value is ?, some random seed will be used
AMPL allows the following:
comand line argument -sN where N is the seed
AMPL command 'option randseed n;' where n is the seed
It would be helpful for testing models with different random values
to add the following syntax to GMPL:
option randseed <numerical expression>;
E.g.
option randseed gmtime();
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Thu, 8 Jul 2010 17:35:14 -0400
> Betreff: Re: Random number seed
> We discussed this a while back. Andrew did provide a means to set the
> seed
> as a command line option in glpsol, but I'm not aware of any way to set
> the
> seed in directly in GMPL. If I'm mistaken on this, I'd be happy to be
> corrected.
>
> Jeff
>
>
> On Thu, Jul 8, 2010 at 5:30 PM, glpk xypron <address@hidden> wrote:
>
> > Hello Andrew,
> >
> > in his article Jeffrey remarks the missing possibility to
> > set the random number seed in GMPL.
> >
> > This question has been discussed before:
> > http://lists.gnu.org/archive/html/help-glpk/2008-12/msg00129.html
> >
> > Best regards
> >
> > Xypron
> > -------- Original-Nachricht --------
> > > Datum: Thu, 8 Jul 2010 17:04:33 -0400
> > > Betreff: [Help-glpk] Portfolio Optimization Example
> >
> > > For what it is worth, I put up a portfolio optimization example on the
> > > wikibook page under GMPL examples. I'd appreciate any thoughts or
> > feedback
> > > on this.
> > >
> > > Jeff
> > >
> > > http://en.wikibooks.org/wiki/GLPK/Portfolio_Optimization
> >
> > --
> > GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
> > Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
> >
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl