<div dir="ltr">Hi Benny,<div>thank you very much for your suggestions. I think to have solved the problem using ObjEventhdlr. This allows to capture any variation in the objective function or variables. I have recalled  the Constrainthdlr inside ObjEventhdlr with the aim of checking violations for my valid inequalities. It seems to work as I expect.</div><div>Best Regards</div><div>Demetrio</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-03 14:27 GMT+01:00 Benjamin Müller <span dir="ltr"><<a href="mailto:benjamin.mueller@zib.de" target="_blank">benjamin.mueller@zib.de</a>></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">
    Dear Demetrio,<br>
    <br>
    I thought about your problem again and if you do not want to have a
    specific constraint, then you could do the same as the integral
    constraint handler. There are no specific constraints of the type
    "integral", but you want to handle the integrality in that handler.
    For doing so, you can set the flag CONSHDLR_NEEDSCONS to true. After
    that, SCIP will go into the the callbacks, even though there is no
    constraint of your specific type.<br>
    <br>
    Best regards,<br>
    Benny<br>
    <br>
    <br>
    <div>Am 31.10.2014 um 15:44 schrieb Benjamin
      Müller:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      
      Dear Demetrio,<br>
      <br>
      do you have created and added a constraint belonging to you
      constraint handler? If you did not add such a constraint then SCIP
      (of course) thinks that there is nothing to do in the
      SCIP_DECL_CONSSEPALP callback since there is no constraint which
      can be handled by your constraint handler.<br>
      <br>
      If this is your current problem then have a look at the TSP
      example of SCIP. There is a constraint handler which handles the
      subtour elimination constraints. To really exclude subtours one
      has to add a constraint via the SCIPcreateConsSubtour method in
      ReaderTSP.cpp. After this call there is a constraint belonging to
      the constraint handler and then it is possible to do several
      things in the SCIP_DECL_CONSSEPALP callback.<br>
      <br>
      Best regards,<br>
      Benny<br>
      <br>
      <div>Am 31.10.2014 um 15:07 schrieb
        Demetrio Laganà:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Dear
            SCIP mailing list,</span>
          <div style="font-family:arial,sans-serif;font-size:13px">I
            have a problem when using ObjConshdlr. More precisely, I
            have implemented the virtual methods from this class and
            included them in the main.cpp of my NetBeans project through
            SCIPincludeObjConshdlr. It seems to me that something does
            not work, because during the flow execution of the code only
            the constructor of this class is run without printing any
            message included
            into SCIP_DECL_CONSSEPALP(ConshdlrMaxTime::scip_sepalp)
            function. Can you help me?</div>
          <div style="font-family:arial,sans-serif;font-size:13px">Thanks

            in advance</div>
          <div style="font-family:arial,sans-serif;font-size:13px">Best
            regards</div>
          <div style="font-family:arial,sans-serif;font-size:13px">Demetrio

            Laganà</div>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Scip mailing list
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
      </blockquote>
      <br>
      <pre cols="72">-- 
______________________________
Benjamin Müller
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
<a href="mailto:benjamin.mueller@zib.de" target="_blank">benjamin.mueller@zib.de</a>
<a href="tel:%2B49%2030%20841%2085-195" value="+493084185195" target="_blank">+49 30 841 85-195</a></pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
______________________________
Benjamin Müller
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
<a href="mailto:benjamin.mueller@zib.de" target="_blank">benjamin.mueller@zib.de</a>
<a href="tel:%2B49%2030%20841%2085-195" value="+493084185195" target="_blank">+49 30 841 85-195</a></pre>
  </div></div></div>

</blockquote></div><br></div>