<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Mahdi,<br>
    <br>
    these are really standard C++ errors, because the methods you are
    using are not found (or not found for the respective parameter
    types).<br>
    <br>
    For SCIPgetDualSolVal, this might be related to the fact that you
    are using SCIP 3.2.0, but the method was only introduced in SCIP
    4.0.1.<br>
    <br>
    For the second one, I can only guess, but it looks like <span
      style="font-variant-ligatures: no-common-ligatures" class="">part_con[0][1]
      is not a SCIP_CONS*. But if you managed to write your own
      extension of SCIP, I am sure you will be able to fix such basic
      C++ issues without the help of the SCIP mailing list.<br>
      <br>
      Best,<br>
      Gerald<br>
    </span><br>
    <div class="moz-cite-prefix">On 24.03.2018 13:20, Mahdi Noorizadegan
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:545EC902-3F03-4A09-9571-E28E0AFC4D40@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Hi Marco and Gerald, 
      <div class=""><br class="">
      </div>
      <div class="">I am sure that the reduced cost is zero, however,
        one of the reviewers of our paper has asked us to compute the
        reduced cost of basic variables to </div>
      <div class="">prove the correctness of our method.</div>
      <div class=""><br class="">
      </div>
      <div class="">Below is the error.</div>
      <div class="">Regards,</div>
      <div class="">Mahdi</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">src/main_single-StageVRP_CCP.cpp:1039:19: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #c73b23" class=""><b class="">error: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">use of undeclared identifier 'SCIPgetDualSolVal';
              did you mean 'SCIPsetSolVal'?</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""> 
                 
            SCIP_CALL(SCIPgetDualSolVal(scip,part_con[0][1],dualval,checkbool
            ));</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">                 
              ^~~~~~~~~~~~~~~~~</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class="">                 
            SCIPsetSolVal</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">../../src/scip/def.h:266:44: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #000000" class=""><b class="">note: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class="">expanded
            from macro 'SCIP_CALL'</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""> 
                                    if( (_restat_ = (x)) != SCIP_OKAY )
                                                            \</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">                  
                                      ^</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">../../src/scip/scip.h:16090:14: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #000000" class=""><b class="">note: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class="">'SCIPsetSolVal'
            declared here</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class="">SCIP_RETCODE
            SCIPsetSolVal(</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">             ^</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">src/main_single-StageVRP_CCP.cpp:1039:42: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #c73b23" class=""><b class="">error: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">no viable conversion from 'SCIP_Cons' to
              'SCIP_SOL *' (aka 'SCIP_Sol *')</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""> 
                 
            SCIP_CALL(SCIPgetDualSolVal(scip,part_con[0][1],dualval,checkbool
            ));</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">                  
                                    ^~~~~~~~~~~~~~</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">../../src/scip/def.h:266:44: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #000000" class=""><b class="">note: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class="">expanded
            from macro 'SCIP_CALL'</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""> 
                                    if( (_restat_ = (x)) != SCIP_OKAY )
                                                            \</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">                  
                                      ^</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">../../src/scip/scip.h:16092:26: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #000000" class=""><b class="">note: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class="">passing
            argument to parameter 'sol' here</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class="">  
            SCIP_SOL*             sol,                /**< primal
            solution */</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">                  
                    ^</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">src/main_single-StageVRP_CCP.cpp:1040:16: </b></span><span
            style="font-variant-ligatures: no-common-ligatures; color:
            #c73b23" class=""><b class="">error: </b></span><span
            style="font-variant-ligatures: no-common-ligatures" class=""><b
              class="">no matching function for call to
              'SCIPgetDualsolLinear'</b></span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(255, 255, 255);
          background-color: rgb(1, 7, 27);" class=""><span
            style="font-variant-ligatures: no-common-ligatures" class=""> 
                  cout<< SCIPgetDualsolLinear(scip,
            part_con[0][1]);</span></div>
        <div style="margin: 0px; font-size: 11px; line-height: normal;
          font-family: Menlo; color: rgb(54, 191, 41); background-color:
          rgb(1, 7, 27);" class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class="">              
              ^~~~~~~~~~~~~~~~~~~~</b></span></div>
        <div class=""><span style="font-variant-ligatures:
            no-common-ligatures" class=""><b class=""><br class="">
            </b></span></div>
        <div>
          <blockquote type="cite" class="">
            <div class="">On 24 Mar 2018, at 3:02 pm, Marco Lübbecke
              <<a href="mailto:marco.luebbecke@rwth-aachen.de"
                class="" moz-do-not-send="true">marco.luebbecke@rwth-aachen.de</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div dir="auto" class="">Mahdi, basic variables have
                reduced cost of zero in an optimal solution. -- Marco</div>
              <br class="">
              <div class="gmail_quote">
                <div dir="ltr" class="">Mahdi Noorizadegan <<a
                    href="mailto:m.noorizadegan@gmail.com" class=""
                    moz-do-not-send="true">m.noorizadegan@gmail.com</a>>
                  schrieb am Sa., 24. März 2018, 11:10:<br class="">
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div style="word-wrap:break-word" class="">Dear
                    SCIPers,
                    <div class=""><br class="">
                    </div>
                    <div class="">I need to compute the reduced cost of
                      basic variables in the optimal solution.</div>
                    <div class="">How can I do it?</div>
                    <div class="">I tried to use <span
                        style="font-family:Menlo;font-size:13px"
                        class="">SCIPgetDualsolLinear</span> and <span
                        style="font-family:Menlo;font-size:13px"
                        class="">SCIPgetDualSolVal</span> .</div>
                    <div class="">as follows <span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">SCIP_CALL(SCIPgetDualSolVal(scip,part_con[</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures;color:rgb(39,42,216)"
                        class="">0</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">][</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures;color:rgb(39,42,216)"
                        class="">1</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">],dualval,checkbool ));</span></div>
                    <div class=""><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">or </span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">cout<< SCIPgetDualsolLinear(scip,
                        part_con[</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures;color:rgb(39,42,216)"
                        class="">0</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">][</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures;color:rgb(39,42,216)"
                        class="">1</span><span
style="font-family:Menlo;font-size:13px;font-variant-ligatures:no-common-ligatures"
                        class="">]);</span></div>
                    <div class="">But it did not work and I got errors.</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Looking forward to haring from you,</div>
                    <div class="">Regards,</div>
                    <div class="">Mahdi </div>
                  </div>
                  _______________________________________________<br
                    class="">
                  Scip mailing list<br class="">
                  <a href="mailto:Scip@zib.de" target="_blank"
                    rel="noreferrer" class="" moz-do-not-send="true">Scip@zib.de</a><br
                    class="">
                  <a
                    href="https://listserv.zib.de/mailman/listinfo/scip"
                    rel="noreferrer noreferrer" target="_blank" class=""
                    moz-do-not-send="true">https://listserv.zib.de/mailman/listinfo/scip</a><br
                    class="">
                </blockquote>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br>
  </body>
</html>