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

formatting

File:
1 edited

Legend:

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

    r1574 r2469  
    33// Corporation and others.  All Rights Reserved.
    44// This code is licensed under the terms of the Eclipse Public License (EPL).
    5 
    65
    76#ifndef CbcSolverLongThin_H
     
    2322  /**@name Solve methods */
    2423  //@{
    25     /// Solve initial LP relaxation
    26     virtual void initialSolve();
     24  /// Solve initial LP relaxation
     25  virtual void initialSolve();
    2726
    28     /// Resolve an LP relaxation after problem modification
    29     virtual void resolve();
     27  /// Resolve an LP relaxation after problem modification
     28  virtual void resolve();
    3029
    3130  //@}
    3231
    33 
    3432  /**@name Constructors and destructors */
    3533  //@{
    36     /// Default Constructor
    37     CbcSolverLongThin ();
    38    
    39     /// Clone
    40     virtual OsiSolverInterface * clone(bool CopyData=true) const;
    41    
    42     /// Copy constructor
    43     CbcSolverLongThin (const CbcSolverLongThin &);
    44    
    45     /// Assignment operator
    46     CbcSolverLongThin & operator=(const CbcSolverLongThin& rhs);
    47    
    48     /// Destructor
    49     virtual ~CbcSolverLongThin ();
     34  /// Default Constructor
     35  CbcSolverLongThin();
     36
     37  /// Clone
     38  virtual OsiSolverInterface *clone(bool CopyData = true) const;
     39
     40  /// Copy constructor
     41  CbcSolverLongThin(const CbcSolverLongThin &);
     42
     43  /// Assignment operator
     44  CbcSolverLongThin &operator=(const CbcSolverLongThin &rhs);
     45
     46  /// Destructor
     47  virtual ~CbcSolverLongThin();
    5048
    5149  //@}
    52 
    5350
    5451  /**@name Sets and Getss */
    5552  //@{
    5653  /// Setup arrays - ones in keep will always be in
    57   void initialize(CbcModel * model, const char * keep);
     54  void initialize(CbcModel *model, const char *keep);
    5855  /// get which ones have been used
    59   inline const int * when() const
    60   { return node_;}
     56  inline const int *when() const
     57  {
     58    return node_;
     59  }
    6160  /// Get memory (i.e. how recent use should be)
    6261  inline int getMemory() const
    63   { return memory_;}
     62  {
     63    return memory_;
     64  }
    6465  /// Get current count
    6566  inline int getCount() const
    66   { return count_;}
     67  {
     68    return count_;
     69  }
    6770  /// Set memory (i.e. how recent use should be)
    6871  inline void setMemory(int value)
    69   { memory_=value;}
     72  {
     73    memory_ = value;
     74  }
    7075  /// Say whether to believe infeasible
    7176  inline void setBelieveInfeasible(bool yesNo)
    72   { believeInfeasible_=yesNo;}
     77  {
     78    believeInfeasible_ = yesNo;
     79  }
    7380  /// Say whether to just count usage
    7481  inline void setAlgorithm(int value)
    75   { algorithm_=value;}
     82  {
     83    algorithm_ = value;
     84  }
    7685  /// Do nested search if this fraction fixed
    7786  inline void setNested(double value)
    78   { nestedSearch_=value;}
     87  {
     88    nestedSearch_ = value;
     89  }
    7990  /// Say whether to just count usage
    8091  inline int getAlgorithm() const
    81   { return algorithm_;}
     92  {
     93    return algorithm_;
     94  }
    8295  /// Do nested search if this fraction fixed
    8396  inline double getNested() const
    84   { return nestedSearch_;}
     97  {
     98    return nestedSearch_;
     99  }
    85100  //@}
    86101
     
    88103
    89104private:
    90  
    91105  /**@name Private member data */
    92106  //@{
     
    94108  double nestedSearch_;
    95109  /// Node number when variable last in problem
    96   int * node_;
     110  int *node_;
    97111  /// How many times in problem
    98   int * howMany_;
     112  int *howMany_;
    99113  /// Pointer back to model
    100   CbcModel * model_;
     114  CbcModel *model_;
    101115  /// Counter
    102116  int count_;
Note: See TracChangeset for help on using the changeset viewer.