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/CbcHeuristicDivePseudoCost.hpp

    r1271 r1286  
    1313public:
    1414
    15   // Default Constructor
    16   CbcHeuristicDivePseudoCost ();
     15    // Default Constructor
     16    CbcHeuristicDivePseudoCost ();
    1717
    18   // Constructor with model - assumed before cuts
    19   CbcHeuristicDivePseudoCost (CbcModel & model);
    20  
    21   // Copy constructor
    22   CbcHeuristicDivePseudoCost ( const CbcHeuristicDivePseudoCost &);
    23    
    24   // Destructor
    25   ~CbcHeuristicDivePseudoCost ();
     18    // Constructor with model - assumed before cuts
     19    CbcHeuristicDivePseudoCost (CbcModel & model);
    2620
    27   /// Clone
    28   virtual CbcHeuristicDivePseudoCost * clone() const;
    29  
    30   /// Assignment operator
    31   CbcHeuristicDivePseudoCost & operator=(const CbcHeuristicDivePseudoCost& rhs);
     21    // Copy constructor
     22    CbcHeuristicDivePseudoCost ( const CbcHeuristicDivePseudoCost &);
    3223
    33   /// Create C++ lines to get to current state
    34   virtual void generateCpp( FILE * fp) ;
     24    // Destructor
     25    ~CbcHeuristicDivePseudoCost ();
    3526
    36   /// Selects the next variable to branch on
    37   /** Returns true if all the fractional variables can be trivially
    38       rounded. Returns false, if there is at least one fractional variable
    39       that is not trivially roundable. In this case, the bestColumn
    40       returned will not be trivially roundable.
    41   */
    42   virtual bool selectVariableToBranch(OsiSolverInterface* solver,
    43                                       const double* newSolution,
    44                                       int& bestColumn,
    45                                       int& bestRound);
    46   /** Initializes any data which is going to be used repeatedly
    47       in selectVariableToBranch */
    48   virtual void initializeData() ;
    49   /// Fix other variables at bounds
    50   virtual int fixOtherVariables(OsiSolverInterface * solver,
    51                                 const double * solution,
    52                                 PseudoReducedCost * candidate,
    53                                 const double * random);
     27    /// Clone
     28    virtual CbcHeuristicDivePseudoCost * clone() const;
     29
     30    /// Assignment operator
     31    CbcHeuristicDivePseudoCost & operator=(const CbcHeuristicDivePseudoCost& rhs);
     32
     33    /// Create C++ lines to get to current state
     34    virtual void generateCpp( FILE * fp) ;
     35
     36    /// Selects the next variable to branch on
     37    /** Returns true if all the fractional variables can be trivially
     38        rounded. Returns false, if there is at least one fractional variable
     39        that is not trivially roundable. In this case, the bestColumn
     40        returned will not be trivially roundable.
     41    */
     42    virtual bool selectVariableToBranch(OsiSolverInterface* solver,
     43                                        const double* newSolution,
     44                                        int& bestColumn,
     45                                        int& bestRound);
     46    /** Initializes any data which is going to be used repeatedly
     47        in selectVariableToBranch */
     48    virtual void initializeData() ;
     49    /// Fix other variables at bounds
     50    virtual int fixOtherVariables(OsiSolverInterface * solver,
     51                                  const double * solution,
     52                                  PseudoReducedCost * candidate,
     53                                  const double * random);
    5454
    5555};
Note: See TracChangeset for help on using the changeset viewer.