<br><br><div class="gmail_quote">On Tue, Mar 3, 2009 at 10:54 AM, Tim Hultberg <span dir="ltr">&lt;<a href="mailto:Tim.Hultberg@eumetsat.int">Tim.Hultberg@eumetsat.int</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I have jut checked - there is a setRowName method of OsiSolverInterface
(don’t think there was when flopc++ was written), so it would be possible to pass
on the names.</span></p><p><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p></div></div></blockquote><div>Yes, I used setRowName(), and writeMPS() and writeLP(), however the output is still not in terms of user defined variable names and constraint names.<br>
There are native version of writeMPS() and writeLP(), which asks for variable names and  constraint names as input parameters. Not sure why this is needed if  methods setRowName(), and setColName() are provided. <br><br>It might be possible to query the variable index of the osi model, and then create the var names with correct index as input parameter to the native version of writeMPS() and writeLP(). But I didn&#39;t try.<br>
<br>Sincerely Yours,<br>Michael Chen<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-GB"><div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:flopcpp-bounces@list.coin-or.org" target="_blank">flopcpp-bounces@list.coin-or.org</a>
[mailto:<a href="mailto:flopcpp-bounces@list.coin-or.org" target="_blank">flopcpp-bounces@list.coin-or.org</a>] <b>On Behalf Of </b>Michael Chen<br>
<b>Sent:</b> Tuesday, March 03, 2009 4:36 PM<br>
<b>To:</b> <a href="mailto:flopcpp@list.coin-or.org" target="_blank">flopcpp@list.coin-or.org</a><br>
<b>Subject:</b> [FlopCpp] variable names lost in FlopC++ or in OSI?</span></p>

</div><div><div></div><div class="h5">

<p> </p>

<p style="margin-bottom: 12pt;">Dear there,<br>
<br>
I usually write the model into MPS format and double check it. however the mps
file written by osiModel usually doesn&#39;t have variable names. Is there anyway
to overcome this? Thanks!<br clear="all">
<br>
-- <br>
Best regards,<br>
Michael Chen</p>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Michael Chen<br><br>