[FlopCpp] track the coefficient

Tim Hultberg Tim.Hultberg at eumetsat.int
Sun Jan 25 10:58:59 EST 2009


Hi again,
  as you write, this is ambigious. Furthermore the same MP_data can be used by several constraints, so I dont really know what kind of row/column query you would like to have for MP_data, and what you would use this for?

Cheers, Tim
________________________________________
From: flopcpp-bounces at list.coin-or.org [flopcpp-bounces at list.coin-or.org] On Behalf Of Michael Chen [vancouver.michael at gmail.com]
Sent: 25 January 2009 16:28
To: flopcpp at list.coin-or.org
Subject: [FlopCpp] track the coefficient

Dear there,

The API provides means to track the constraint and variable index in the generated osi model, variable.get_Column() and constraint.rownumber(). I am wondering how to track the coefficient index in the generated osi model? It seems that MP_data class doesn't provide this method.

however I realized that this is indeed ambiguous. Say a user may write a variable at both side of a constraint, i.e.,

 coef1 * x1 >= coef2 * x1

FlopCpp will probably generate
(coef1 - coef2) * x1 >= 0

however my question should be clear: I want to establish the correspondence between the user model written in FlopCpp, and the generated osi model. And the last missing piece seems to be the method for MP_data. Any suggestion?


--
Best regards,
Michael Chen




More information about the FlopCpp mailing list