GenSetMin.h

00001 #ifndef GenSetMin_h
00002 #define GenSetMin_h
00003 //------------------------------------------------------------------------
00004 // Generating Set Classes - for use with OptGSS
00005 //------------------------------------------------------------------------
00006 
00007 /*------------------------------------------------------------------------
00008  Copyright (c) 2003,
00009  Ricardo Oliva (raoliva@lbl.gov)
00010  Lawrence Berkeley National Laboratory
00011  ------------------------------------------------------------------------*/
00012 
00013 #include "GenSetBase.h"
00014 
00015 using std::string;
00016 
00017 namespace OPTPP {
00018 
00019 //------------------------------------------------------------------------
00020 // Standard Basis with n+1 vectors
00021 //------------------------------------------------------------------------
00022 class GenSetMin : public GenSetBase { 
00023 
00024  public:
00025   virtual string classnm() { return "GenSetMin";}
00026 
00027   // default constructor;
00028   GenSetMin(){};
00029 
00030   // Size specific constructor
00031   GenSetMin(int n) : GenSetBase(n) { 
00032     setSize(n+1); 
00033     initActive();
00034   };
00035 
00036   // iteration methods - virtual in base
00037 
00038   void generate(int i, double a, NEWMAT::ColumnVector &x, NEWMAT::ColumnVector &y);
00040 
00041   //
00042   // pruning methods - virtual in base
00043   //
00044   int init(){ return 0;}    
00045   int init(NEWMAT::ColumnVector& pV);     
00046   int update(){ return 0;}    
00047   int update(NEWMAT::ColumnVector& pV);   
00048   bool prunes() { return true;}
00049 
00050  
00052   virtual ~GenSetMin() {;}  
00053 };
00054 
00055 } // namespace OPTPP
00056 
00057 #endif
Generated on Mon Jan 24 12:04:37 2011 for FASTlib by  doxygen 1.6.3