Ignore:
Timestamp:
Nov 9, 2009 6:33:07 PM (10 years ago)
Author:
EdwinStraver
Message:

Changed formatting using AStyle -A4 -p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sandbox/Cbc/src/CbcFeasibilityBase.hpp

    r1271 r1286  
    1010    The user may want to examine the problem and say :
    1111    a) The default looks OK
    12     b) Pretend this problem is Integer feasible 
     12    b) Pretend this problem is Integer feasible
    1313    c) Pretend this problem is infeasible even though it looks feasible
    14    
     14
    1515    This simple class allows user to do that.
    1616
     
    2020class CbcFeasibilityBase {
    2121public:
    22   // Default Constructor
    23   CbcFeasibilityBase () {}
     22    // Default Constructor
     23    CbcFeasibilityBase () {}
    2424
    25   /**
    26      On input mode:
    27      0 - called after a solve but before any cuts
    28      -1 - called after strong branching
    29      Returns :
    30      0 - no opinion
    31      -1 pretend infeasible
    32      1 pretend integer solution
    33   */
    34   virtual int feasible(CbcModel * , int ) {return 0;}
     25    /**
     26       On input mode:
     27       0 - called after a solve but before any cuts
     28       -1 - called after strong branching
     29       Returns :
     30       0 - no opinion
     31       -1 pretend infeasible
     32       1 pretend integer solution
     33    */
     34    virtual int feasible(CbcModel * , int ) {
     35        return 0;
     36    }
    3537
    36   virtual ~CbcFeasibilityBase() {}
     38    virtual ~CbcFeasibilityBase() {}
    3739
    38   // Copy constructor
    39   CbcFeasibilityBase ( const CbcFeasibilityBase & )
    40   {}
    41    
    42   // Assignment operator
    43   CbcFeasibilityBase & operator=( const CbcFeasibilityBase& )
    44   { 
    45     return *this;
    46   }
     40    // Copy constructor
     41    CbcFeasibilityBase ( const CbcFeasibilityBase & ) {}
    4742
    48   /// Clone
    49   virtual CbcFeasibilityBase * clone() const
    50   { return new CbcFeasibilityBase(*this);}
     43    // Assignment operator
     44    CbcFeasibilityBase & operator=( const CbcFeasibilityBase& ) {
     45        return *this;
     46    }
     47
     48    /// Clone
     49    virtual CbcFeasibilityBase * clone() const {
     50        return new CbcFeasibilityBase(*this);
     51    }
    5152};
    5253#endif
Note: See TracChangeset for help on using the changeset viewer.