<div dir="ltr">Hi,<div><br></div><div>Yes, I tried the patch and it worked well. Thank you!</div><div><br></div><div>Regards,</div><div>Murilo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/17 Stefan Vigerske <span dir="ltr">&lt;<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
thanks for the bugreport.<br>
<br>
I agree that coltype_ should not be just deleted there, but it may need to be updated.<br>
It works fine if you remove only last columns, but if one removes some in the middle, the holes need to be filled with values from later positions.<br>
<br>
Can you try if the attached patch also works for you?<br>
<br>
Thanks,<br>
Stefan<div><div class="h5"><br>
<br>
On 01/17/2014 11:00 AM, Murilo Reolon Scuzziato wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I am using the OsiSolverGrbInterface and some unexpected things are<br>
happened.<br>
<br>
When I use the method deleteCols() and after that I use the method<br>
addCol(), I got<br>
<br>
         Assertion failed: minsize == 0 || coltype_ != NULL,<br>
         file OsiGrbSolverInterface.cpp, line 187<br>
<br>
This is because minsize &gt; 0 and coltype_ == NULL, which in turn is due to<br>
the fact that in<br>
<br>
OsiGrbSolverInterface::<u></u>deleteCols(const int num, const int * columnIndices)<br>
<br>
at lines 2437 to 2441 the following piece of code<br>
<br>
if( coltype_ )<br>
{<br>
  delete[] coltype_;<br>
  coltype_ = NULL;<br>
  }<br>
<br>
deletes it. Although I cannot be sure, it seems to me that code is wrong,<br>
as coltype_ should only be deleted when *the last column* is deleted,<br>
leaving an empty problem; however, this is not the case.<br>
<br>
Indeed, commenting out these lines the code works well in my application<br>
(as checked by comparing with OsiCpx).<br>
<br>
I thought you may want to know. Maybe I&#39;m wrong, and in this case I&#39;d<br>
really appreciate if you could give me a hint about why the error may<br>
occur, but in the odd chance I&#39;m right you may want to correct the issue.<br>
<br>
If you need further details about how the assert() is produced I&#39;ll be<br>
happy to provide them.<br>
<br>
Regards,<br>
Murilo<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Osi mailing list<br>
<a href="mailto:Osi@list.coin-or.org" target="_blank">Osi@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/osi" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/osi</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>