[Coin-discuss] OsiCbcSolverInterface.getObjValue()

John J Forrest jjforre at us.ibm.com
Thu Aug 2 11:23:04 EDT 2007


OsiCbc was a logical mistake so the getObjValue() you are using is as for
OsiXXXSolverInterface i.e. for a continuous problem.

You can use getModelPtr()->getObjValue() which points to the underlying
CbcModel.  You can get at anything you see in CbcModel.hpp in that way.

John Forrest


                                                                           
             "Hacène Ouzia"                                                
             <h.ouzia at gmail.co                                             
             m>                                                         To 
             Sent by:                  coin-discuss at list.coin-or.org       
             coin-discuss-boun                                          cc 
             ces at list.coin-or.                                             
             org                                                   Subject 
                                       [Coin-discuss]                      
                                       OsiCbcSolverInterface.getObjValue() 
             08/01/2007 07:46                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             Discussions about                                             
                open source                                                
               software for                                                
                Operations                                                 
                 Research                                                  
             <coin-discuss at lis                                             
              t.coin-or.org>                                               
                                                                           
                                                                           




Hi,

I noted that the method

      OsiCbcSolverInterface.getObjValue()

does not give the best objective value when i use

    OsiCbcSolverInterface.branchAndBound()

So, is it possible to get that value with OsiCbcSolverInterface?

Best regards,
Hacene.

--
Hacene Ouzia
Ph.D Student.
Université Pierre et Marie Curie.
Laboratoire d'Informatique de Paris 6.
France.
hacene.ouzia at lip6.fr

_______________________________________________
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