<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Coin,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I found a small problem in the program
ClpPackedMatrix.cpp in the function ClpPackedMatrix::scale:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Original code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>#ifndef
NO_RTTI<BR> ClpQuadraticObjective * quadraticObj =
(dynamic_cast<
ClpQuadraticObjective*>(obj));<BR>#else<BR>
ClpQuadraticObjective * quadraticObj = NULL;<BR> if
(obj->type()==2)<BR> quadraticObj =
(static_cast< ClpQuadraticObjective*>(obj));<BR>#endif<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I have NO_RTTI in my project settings (MS visual
C++ V6, Windows/XP) and ran into the debugger, because obj->type() was 1 and
not 2. So I changed the code in line with the RTTI case and had no more
problems:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face="Courier New" color=#0000ff size=2>ClpQuadraticObjective *
quadraticObj = NULL;<BR>#ifndef NO_RTTI<BR> if
(obj->type()==2)</FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff
size=2> quadraticObj =
(ClpQuadraticObjective*)obj;<BR>#else<BR> if
(obj->type()==2)<BR> quadraticObj =
(static_cast< ClpQuadraticObjective*>(obj));<BR>#endif</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff
size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>Another question: would it be helpful to run the
profiler to see what the most cpu demanding functions are and then try to adapt
these functions in order to improve overall performance. Or is this something
that already has been done?</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>Regards</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>Rolf Steenge</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>Archipel 3619</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>8224 HL Lelystad</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>the Netherlands </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>Europe</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000>mail <A
href="mailto:rolf_steenge@planet.nl">rolf_steenge@planet.nl</A></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Courier New" color=#0000ff size=2><FONT
face=Arial color=#000000></FONT> </DIV></FONT></FONT></BODY></HTML>