<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="TR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Gregor,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you for your useful instruction.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">When i tried with PYTHONHASHSEED=0, it generated exactly the same results.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:TR">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:TR"> Scip <scip-bounces@zib.de>
<b>On Behalf Of </b>Gregor Hendel<br>
<b>Sent:</b> Wednesday, October 3, 2018 6:33 PM<br>
<b>To:</b> scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] SCIP produces different results for the same problem instance<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear Tufan,<br>
<br>
we are actually making an effort to keep SCIP deterministic, so you should see the same solution after every call on the same problem. A time limit might lead to different results, but this does not seem to be the case here.<br>
<br>
I tend to say you got "Pythoned" here.<br>
<br>
My best guess, as I have no other information how you invoke the problem solve, is that you use dictionaries<br>
somewhere in the problem creation. Now, depending on the version, Python's internal hashing is nondeterministic,<br>
see also <a href="https://stackoverflow.com/questions/14956313/why-is-dictionary-ordering-non-deterministic">
here</a>. The same would be true for Java, I suppose. If you loop over the keys() of a dictionary, the order<br>
is different every time you run, effectively generating a different permutation of your problem's columns and rows, which may affect the performance of the MIP solver and also specific solution values may be different between runs, but of course not the objective
 value of an optimal solution.<br>
<br>
The link I posted contains a link to a solution to the problem using a PYHASHSEED environment variable, which I haven't verified.<br>
<br>
Let us know if this is the source of, and solution to, your problem,<br>
Gregor<br>
<br>
<span style="font-size:12.0pt;mso-fareast-language:TR"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">Am 03.10.2018 um 13:09 schrieb Tufan BAYDEMİR:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">I’m using pyscipopt interface within Python to solve a MIP problem.
<o:p></o:p></p>
<p class="MsoNormal">I run the same code without making any changes and obtain different optimal solutions.<o:p></o:p></p>
<p class="MsoNormal">The objective function value is the same for all solutions. <o:p>
</o:p></p>
<p class="MsoNormal">But value of the decision variables are always different ie. The program ganarates alternative optimal solutions in each subsequent run.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">How can I insure that i get the same solution?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">Tufan<o:p></o:p></p>
<p><b><span style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#224877">o</span></b><b><span style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#2B62A2">b</span></b><b><span style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#2D7EC0">a</span></b><b><span style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#3A94D0">s</span></b><b><span style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#46ABDF">e</span></b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#1A3E72">
 Bilgisayar ve Danışmanlık Hizm. Tic. A.Ş.</span><br>
<span style="font-size:8.5pt;font-family:"Verdana",sans-serif;color:#1A3E72">TEL: +90216 527 30 00</span><br>
<span style="font-size:8.5pt;font-family:"Verdana",sans-serif;color:#1A3E72">FAX: +90216 527 31 11</span><br>
<span style="font-size:1.0pt"><a href="http://www.obase.com" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1025" src="http://www.obase.com/images/signature/home.png"></span></a><a href="https://www.facebook.com/obasesocial" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1026" src="http://www.obase.com/images/signature/facebook.png"></span></a><a href="https://twitter.com/obasesocial" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1027" src="http://www.obase.com/images/signature/twitter.png"></span></a><a href="https://tr.linkedin.com/in/obase" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1028" src="http://www.obase.com/images/signature/linkedin.png"></span></a></span><br>
<a href="http://www.obase.com" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1029" src="http://www.obase.com/images/signature/obaselogo.png"></span></a><o:p></o:p></p>
<p><span style="font-size:7.5pt;font-family:"Calibri",sans-serif;color:#9A9A9A">Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafindan almasi amaclanan yetkili gercek ya da tüzel kisinin kullanimi icindir. Eger söz konusu yetkili
 alici degilseniz bu elektronik postanin icerigini aciklamaniz, kopyalamaniz, yönlendirmeniz ve kullanmaniz kesinlikle yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir. OBASE bu mesajin icerdigi bilgilerin doğruluğu veya eksiksiz oldugu konusunda
 herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne sekilde olursa olsun iceriginden, iletilmesinden, alinmasindan ve saklanmasindan sorumlu degildir. Bu mesajdaki görüsler yalnizca gönderen kisiye aittir ve OBASE görüslerini yansitmayabilir.<br>
<br>
Bu e-posta bilinen bütün bilgisayar virüslerine karsi taranmistir.<br>
<br>
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying
 or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted. OBASE makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for
 the information contained therein or for the information transmission, recepxion, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of OBASE.<br>
<br>
This e-mail has been scanned for all known computer viruses.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:TR"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Scip mailing list<o:p></o:p></pre>
<pre><a href="mailto:Scip@zib.de">Scip@zib.de</a><o:p></o:p></pre>
<pre><a href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:TR"><o:p> </o:p></span></p>
</div>
</body>
</html>