<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Greg,<br>
<br>
In Clp/trunk I have added randomSeed which allows you to set an
initial seed. If set to 0 then uses time of day to generate a
random seed.<br>
<br>
If you want to use Clp/stable then it should be easy to patch if
you look at differences in 1883. CbcOrClpParam.?pp have changed
and I also had to fix a benign "bug" which stopped changes being
made (ClpModel.cpp)<br>
<br>
I attach a file showing three runs. Is that what you wanted?<br>
<br>
John Forrest<br>
<br>
<br>
<br>
On 24/09/12 22:12, Greg Gruber wrote:<br>
</div>
<blockquote
cite="mid:CAOn2p3f1gid6_VtatLsc+67sEGz8a+eqKpc+TUCcMofykL4oUA@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=ISO-8859-1">
<div>Hello,</div>
<div> </div>
<div>I am using the clp.exe command line tool to solve a model
that I have coded with GLPK. It is working fine, but I would
like to make successive runs using a random numbers to change
some parameters. With glpsol I can do the following:</div>
<div> </div>
<div>glpsol --seed ? -m foo.mod -d foo.dat</div>
<div> </div>
<div>and a different random number seed will be used each time.
When I solve using clp, I do the following:</div>
<div> </div>
<div>clp foo.mod%foo.dat -solve </div>
<div> </div>
<div>But I get the same result each time, because it is using the
same random number seed.</div>
<div> </div>
<div>Is there a way to force a new seed?</div>
<div> </div>
<div>Thanks,</div>
<div>Greg Gruber</div>
<div> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Clp mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clp@list.coin-or.org">Clp@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/clp">http://list.coin-or.org/mailman/listinfo/clp</a>
</pre>
</blockquote>
<br>
</body>
</html>