<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Dear He Xingqiu,<br>
      <br>
      if you want to print the vardata together with the nonzero valued
      variables, you will have to do the loop over the variables
      yourself.<br>
      You can get the best solution with SCIPgetBestSol() and then
      iterate over all variables, asking for the solution value in this
      solution via SCIPgetSolVal(). If this is not zero (within
      tolerance), you can just print whatever is stored in your vardata.<br>
      <br>
      Now how can you call this? If you want to use the interactive
      shell, there are (at least) two ways to call the printing:<br>
      1) You add this printing to some EXIT callback (e.g., of your
      pricer) and print the solution automatically when freeing the
      problem, i.e., when quitting SCIP or reading in a new problem.<br>
      2) You extend the default dialog handler of SCIP (dialog_default)
      by a new command or modify the old command
      SCIPdialogExecDisplaySolution such that your updated writing
      method is called.<br>
      <br>
      Best,<br>
      Gerald<br>
      <br>
      <br>
      On 19.05.2015 18:52, 贺行遒 wrote:<br>
    </div>
    <blockquote cite="mid:COL129-W78B67065B3713DAB9B855ED7C30@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:微软雅黑
}
--></style>
      <div dir="ltr">Hello all, <br>
        <br>
        In the default settings, when using command "display solution",
        only objective value and nonzero variables are printed out. <br>
        What should I do if I want to also print the vardata with those
        nonzero variable values?<br>
        <br>
        Best Regards,<br>
        He Xingqiu<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>