Ignore:
Timestamp:
Jan 6, 2019 2:43:06 PM (3 months ago)
Author:
unxusr
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/AbcWarmStart.hpp

    r1910 r2385  
    55  This code is licensed under the terms of the Eclipse Public License (EPL).
    66*/
    7 
    87
    98#ifndef AbcWarmStart_H
     
    3029  void createBasis34();
    3130  /// delete basis
    32   void deleteBasis(AbcWarmStart * basis);
    33 /*! \name Constructors, destructors, and related functions */
    34 
    35 //@{
     31  void deleteBasis(AbcWarmStart *basis);
     32  /*! \name Constructors, destructors, and related functions */
     33
     34  //@{
    3635
    3736  /** Default constructor
     
    3938    Creates a warm start object organizer
    4039  */
    41   AbcWarmStartOrganizer(AbcSimplex * model=NULL);
     40  AbcWarmStartOrganizer(AbcSimplex *model = NULL);
    4241
    4342  /** Copy constructor */
    44   AbcWarmStartOrganizer(const AbcWarmStartOrganizer& ws) ;
     43  AbcWarmStartOrganizer(const AbcWarmStartOrganizer &ws);
    4544
    4645  /** Destructor */
     
    4948  /** Assignment */
    5049
    51   virtual AbcWarmStartOrganizer& operator=(const AbcWarmStartOrganizer& rhs) ;
    52 //@}
     50  virtual AbcWarmStartOrganizer &operator=(const AbcWarmStartOrganizer &rhs);
     51  //@}
    5352
    5453protected:
     
    5655  //@{
    5756  /// Pointer to AbcSimplex (can only be applied to that)
    58   AbcSimplex * model_;
     57  AbcSimplex *model_;
    5958  /// Pointer to first basis
    60   AbcWarmStart * firstBasis_;
     59  AbcWarmStart *firstBasis_;
    6160  /// Pointer to last basis
    62   AbcWarmStart * lastBasis_;
     61  AbcWarmStart *lastBasis_;
    6362  /// Number of bases
    6463  int numberBases_;
     
    7574class AbcWarmStart : public virtual CoinWarmStartBasis {
    7675public:
    77 /*! \name Methods to modify the warm start object */
    78 //@{
     76  /*! \name Methods to modify the warm start object */
     77  //@{
    7978
    8079  /*! \brief Set basis capacity; existing basis is discarded.
     
    8382    a valid basis: all structural and artificial variables have status isFree.
    8483  */
    85   virtual void setSize(int ns, int na) ;
     84  virtual void setSize(int ns, int na);
    8685
    8786  /*! \brief Set basis capacity; existing basis is maintained.
     
    9392    variables do not have a finite lower bound.)
    9493  */
    95   virtual void resize (int newNumberRows, int newNumberColumns);
     94  virtual void resize(int newNumberRows, int newNumberColumns);
    9695
    9796  /** \brief Delete a set of rows from the basis
     
    111110  */
    112111
    113   virtual void compressRows (int tgtCnt, const int *tgts) ;
     112  virtual void compressRows(int tgtCnt, const int *tgts);
    114113
    115114  /** \brief Delete a set of rows from the basis
     
    124123  */
    125124
    126   virtual void deleteRows(int rawTgtCnt, const int *rawTgts) ;
     125  virtual void deleteRows(int rawTgtCnt, const int *rawTgts);
    127126
    128127  /** \brief Delete a set of columns from the basis
     
    136135 */
    137136
    138   virtual void deleteColumns(int number, const int * which);
     137  virtual void deleteColumns(int number, const int *which);
    139138  /// Set model
    140   inline void setModel(AbcSimplex * model)
    141   { model_=model;}
     139  inline void setModel(AbcSimplex *model)
     140  {
     141    model_ = model;
     142  }
    142143  /// Get model
    143   inline AbcSimplex * model() const
    144   { return model_;}
     144  inline AbcSimplex *model() const
     145  {
     146    return model_;
     147  }
    145148  /// Create Basis type 0
    146   void createBasis0(const AbcSimplex * model);
     149  void createBasis0(const AbcSimplex *model);
    147150  /// Create Basis type 12
    148   void createBasis12(const AbcSimplex * model);
     151  void createBasis12(const AbcSimplex *model);
    149152  /// Create Basis type 34
    150   void createBasis34(const AbcSimplex * model);
    151 /*! \name Constructors, destructors, and related functions */
    152 
    153 //@{
     153  void createBasis34(const AbcSimplex *model);
     154  /*! \name Constructors, destructors, and related functions */
     155
     156  //@{
    154157
    155158  /** Default constructor
     
    169172    the status arrays.
    170173  */
    171   AbcWarmStart(AbcSimplex * model,int type) ;
     174  AbcWarmStart(AbcSimplex *model, int type);
    172175
    173176  /** Copy constructor */
    174   AbcWarmStart(const AbcWarmStart& ws) ;
     177  AbcWarmStart(const AbcWarmStart &ws);
    175178
    176179  /** `Virtual constructor' */
    177180  virtual CoinWarmStart *clone() const
    178181  {
    179      return new AbcWarmStart(*this);
     182    return new AbcWarmStart(*this);
    180183  }
    181184
     
    185188  /** Assignment */
    186189
    187   virtual AbcWarmStart& operator=(const AbcWarmStart& rhs) ;
     190  virtual AbcWarmStart &operator=(const AbcWarmStart &rhs);
    188191
    189192  /** Assign the status vectors to be the warm start information.
     
    202205      freed using delete[], so they must be created using new[].
    203206  */
    204   virtual void assignBasisStatus(int ns, int na, char*& sStat, char*& aStat) ;
    205 //@}
     207  virtual void assignBasisStatus(int ns, int na, char *&sStat, char *&aStat);
     208  //@}
    206209
    207210protected:
     
    219222  /// Length of extra information in bytes
    220223  int lengthExtraInformation_;
    221   /// The extra information. 
    222   char * extraInformation_;
     224  /// The extra information.
     225  char *extraInformation_;
    223226  /// Pointer back to AbcSimplex (can only be applied to that)
    224   AbcSimplex * model_;
     227  AbcSimplex *model_;
    225228  /// Pointer back to AbcWarmStartOrganizer for organization
    226   AbcWarmStartOrganizer * organizer_;
     229  AbcWarmStartOrganizer *organizer_;
    227230  /// Pointer to previous basis
    228   AbcWarmStart * previousBasis_;
     231  AbcWarmStart *previousBasis_;
    229232  /// Pointer to next basis
    230   AbcWarmStart * nextBasis_;
     233  AbcWarmStart *nextBasis_;
    231234  /// Sequence stamp for deletion
    232235  int stamp_;
     
    239242};
    240243#endif
     244
     245/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
     246*/
Note: See TracChangeset for help on using the changeset viewer.