<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
Hi all,<BR>&nbsp;<BR>
(With recent posts about setting CBC parameters, this seems like a nice time for a repost..)<BR>I found two posts in the mail archive about the OsiSolverInterface::copyParameters function, but couldnt find any answers, so I'll have another go..<BR>Apologies if this issue was already addressed.<BR>&nbsp;<BR>The copyParameters, at least between an instance of OsiCbcSolverInterface and a OsiClpSolverInterface doesnt seem to copy anything.<BR>I looked at the code, and the issue seems to be that the only implementation of copyParameters is the default implementation in OsiSolverInterface.cpp. This simply copies the values in its Param arrays (like intParam_). Unfortunately, however, these arrays are NOT used by OsiCbc or OsiClp to store values. Rather, these two just pass any setting on to the underlying modelPtr. (If I understand the code correctly)<BR>&nbsp;<BR>One way to implement this in the base class would be to just iteratively call the GetxxParam and SetxxParams, and not just copy the (unused) settings arrays.<BR>This is not only an issue for the copyParameters method, but also other base class implementations, such as setInitialData.<BR>
One problem are the base class' Hint settings, since, these *are* used, at least by OsiClp.<BR>
Any ideas?<BR><BR>Regards,<BR>&nbsp;<BR>Jan-Willem Goossens<BR><br /><hr />Ontdek Windows Live, een nieuwe Windows ervaring. <a href='http://get.live.com/nl-nl/wl/all' target='_new'>Een gratis upgrade. Download nu.</a></body>
</html>