<div dir="ltr"><div>Thank you very much John for your kind assistance :)<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-01 15:10 GMT+02:00 John Forrest <span dir="ltr">&lt;<a href="mailto:john.forrest@fastercoin.com" target="_blank">john.forrest@fastercoin.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Marco,<br>
      <br>
      There was an option to try heuristics even if it looked
      unpromising.  I have modified code so that if this is set then
      heuristics do not get switched off even if unknown branching
      objects.<br>
      <br>
      When I did this code entered heuristics, but feasibility pump
      decided it wasn&#39;t worth it on your tiny problem (too high a
      proportion of general integer variables).  There was a way to tell
      that particular heuristic to carry on.  You can see the way that
      was set in attached sample.<br>
      <br>
      It should all be safe - although it is possible an heuristic may
      get a solution which is then thrown out on closer inspection - but
      that&#39;s OK.<br>
      <br>
      John Forrest<div><div class="h5"><br>
      On 01/07/14 11:06, mg wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi All,
        <div>I&#39;m currently solving a complex (lot-sizing like) problem
          where some variables are semi-continuous in the sense that
          they&#39;re zero or greater than a certain threshold.</div>
        <div><br>
        </div>
        <div>Of course this discontinuity can be implemented either
          using a binary variable or using a CbcLotSize branching
          object, with the latter being theoretically more efficient
          than the former.</div>
        <div><br>
        </div>
        <div>Problem is, if I introduce a LotSize object, this
          automatically disable all the heuristics  (I&#39;m solving the
          problem through CallCBC) since they do not support objects
          other than integers or SOS...</div>
        <div><br>
        </div>
        <div>But as I said the problem is complex, the time to solve it
          is limited and the heuristics usually greatly help in finding
          the best solution.</div>
        <div><br>
        </div>
        <div>Do you have any suggestion on how to work around this issue
          ? </div>
        <div>Should I introduce a binary variable instead of the branch
          object ?<br>
        </div>
        <div><br>
        </div>
        <div>Thanks in advance,</div>
        <div>Marco</div>
        <div><br>
        </div>
        <div>P.S.</div>
        <div>I&#39;m using CBC trunk</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Cbc mailing list
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><br></div>