[Coin-discuss] CoinBuild / CoinPackedMatrix

Matthew Galati Matthew.Galati at sas.com
Sun Apr 8 22:12:26 EDT 2007


Thanks for the reply John.

It might be less confusing to make the 2nd arg optional (default to NULL) and use the internal object associated_ by default.

Which is equivalent to what I did:  
 cModel.createPackedMatrix(*modelRelaxCl->M, cModel.associatedArray());

Thanks,
Matt



-----Original Message-----
From: coin-discuss-bounces at list.coin-or.org [mailto:coin-discuss-bounces at list.coin-or.org] On Behalf Of John J Forrest
Sent: Sunday, April 08, 2007 4:45 AM
To: Discussions about open source software for Operations Research
Subject: Re: [Coin-discuss] CoinBuild / CoinPackedMatrix

Matt,

CoinModel is definitely what you want.  You could just use some dummy stuff for bounds etc and then use the standard Osi or Clp CoinModel calls.

CoinModel can have names  as elements e.g. 2.1*C00001.  If it has then
C00001 would have been associated with a value and that is the array you would pass - modelObject.associatedArray() see.line 654 in OsiSolverInterface.cpp.

Sorry I can't help more - but I think I am going to be mostly off-line for a few weeks.

John


                                                                           
             Matthew Galati                                                
             <magh at lehigh.edu>                                             
             Sent by:                                                   To 
             coin-discuss-boun         Lou Hafer <lou at cs.sfu.ca>,          
             ces at list.coin-or.         Discussions about open source       
             org                       software for Operations Research    
                                       <coin-discuss at list.coin-or.org>     
                                                                        cc 
             05.04.2007 13:08                                              
                                                                   Subject 
                                       Re: [Coin-discuss] CoinBuild /      
             Please respond to         CoinPackedMatrix                    
             Discussions about                                             
                open source                                                
               software for                                                
                Operations                                                 
                 Research                                                  
             <coin-discuss at lis                                             
              t.coin-or.org>                                               
                                                                           
                                                                           





>> What is the 2nd arg of createPackedMatrix for? What am I suppose to 
>> pass
in
>> for "associated".
>>
>
>            Someone else is going to have to help with this question.  
> I
haven't
> actually used CoinModel, so can't give a solid answer.
>
       Lou
>

No info in comments, and createPackedMatrix is not in unitTest. There is an "associatedArray( )" access method, but if that was correct, createdPackedMatrix could just access it directly from within the object
- so I am not sure what the argument is for.

_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss


_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss




More information about the Coin-discuss mailing list