Bonmin  1.7
BonPseudoCosts.hpp
Go to the documentation of this file.
00001 // (C) Copyright International Business Machines Corporation 2007
00002 // All Rights Reserved.
00003 // This code is published under the Common Public License.
00004 //
00005 // Authors :
00006 // Pierre Bonami, International Business Machines Corporation
00007 //
00008 // Date : 04/12/2007
00009 
00010 #ifndef BonPseudoCosts_H
00011 #define BonPseudoCosts_H
00012 
00013 #include "OsiChooseVariable.hpp"
00014 namespace Bonmin
00015 {
00016 
00017   class PseudoCosts: public OsiPseudoCosts
00018   {
00019   public:
00021     PseudoCosts();
00022 
00024     PseudoCosts(const PseudoCosts & rhs);
00025 
00027     PseudoCosts & operator=(const PseudoCosts&rhs);
00028 #if 0
00029 
00030     inline double * upTotalChange()
00031     {
00032       return upTotalChange_;
00033     }
00034 
00036     inline double * downTotalChange()
00037     {
00038       return downTotalChange_;
00039     }
00040 
00042     inline int * upNumber()
00043     {
00044       return upNumber_;
00045     }
00046 
00048     inline int * downNumber()
00049     {
00050       return downNumber_;
00051     }
00052 
00054     inline const double * upTotalChange() const
00055     {
00056       return upTotalChange_;
00057     }
00058 
00060     inline const double * downTotalChange() const
00061     {
00062       return downTotalChange_;
00063     }
00064 
00066     inline const int * upNumber() const
00067     {
00068       return upNumber_;
00069     }
00070 
00072     inline const int * downNumber() const
00073     {
00074       return downNumber_;
00075     }
00076 
00078     inline int numberObjects() const
00079     {
00080       return numberObjects_;
00081     }
00082 #endif
00083 
00084     void addInfo(int way, double originalObj, double originalInfeas,
00085         double newObj, double newInfeas, int status);
00086 
00087   };
00088 
00089 }/* End Bonmin namespace.*/
00090 
00091 #endif