Ignore:
Timestamp:
Jan 6, 2019 6:17:46 PM (10 months ago)
Author:
unxusr
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/CbcBranchFollow2.hpp

    r1574 r2469  
    99#include "CbcBranchActual.hpp"
    1010#include "CoinPackedMatrix.hpp"
    11 
    1211
    1312/** Define a follow on class.
     
    2726
    2827public:
    29 
    30   // Default Constructor
    31   CbcFollowOn2 ();
     28  // Default Constructor
     29  CbcFollowOn2();
    3230
    3331  /** Useful constructor
    3432  */
    35   CbcFollowOn2 (CbcModel * model);
    36  
    37   // Copy constructor 
    38   CbcFollowOn2 ( const CbcFollowOn2 &);
    39    
     33  CbcFollowOn2(CbcModel *model);
     34
     35  // Copy constructor
     36  CbcFollowOn2(const CbcFollowOn2 &);
     37
    4038  /// Clone
    41   virtual CbcObject * clone() const;
     39  virtual CbcObject *clone() const;
    4240
    43   // Assignment operator 
    44   CbcFollowOn2 & operator=( const CbcFollowOn2& rhs);
     41  // Assignment operator
     42  CbcFollowOn2 &operator=(const CbcFollowOn2 &rhs);
    4543
    46   // Destructor 
    47   ~CbcFollowOn2 ();
    48  
     44  // Destructor
     45  ~CbcFollowOn2();
     46
    4947  /// Infeasibility - large is 0.5
    50   virtual double infeasibility(int & preferredWay) const;
     48  virtual double infeasibility(int &preferredWay) const;
    5149
    5250  /// This looks at solution and sets bounds to contain solution
    5351  virtual void feasibleRegion();
    5452  /// Creates a branching object
    55   virtual CbcBranchingObject * createBranch(int way) ;
     53  virtual CbcBranchingObject *createBranch(int way);
    5654  /** As some computation is needed in more than one place - returns row.
    5755      Also returns other row and effective rhs (so we can know if cut)
    5856  */
    59   virtual int gutsOfFollowOn2(int & otherRow, int & preferredWay,
    60                               int & effectiveRhs) const;
     57  virtual int gutsOfFollowOn2(int &otherRow, int &preferredWay,
     58    int &effectiveRhs) const;
    6159
    6260  /// get and set for maximum rhws (affects cuts as branch)
    6361  inline int maximumRhs() const
    64   { return maximumRhs_;}
     62  {
     63    return maximumRhs_;
     64  }
    6565  inline void setMaximumRhs(int value)
    66   { maximumRhs_=value;}
     66  {
     67    maximumRhs_ = value;
     68  }
     69
    6770protected:
    6871  /// data
     
    7073  CoinPackedMatrix matrix_;
    7174  /// Matrix by row
    72   CoinPackedMatrix matrixByRow_; 
     75  CoinPackedMatrix matrixByRow_;
    7376  /// Possible rhs (if 0 then not possible)
    74   int * rhs_;
     77  int *rhs_;
    7578  /// If >1 then allow cuts if effective rhs <= this
    7679  int maximumRhs_;
Note: See TracChangeset for help on using the changeset viewer.