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

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpObjective.cpp

    r1665 r2385  
    1515// Default Constructor
    1616//-------------------------------------------------------------------
    17 ClpObjective::ClpObjective () :
    18      offset_(0.0),
    19      type_(-1),
    20     activated_(1)
     17ClpObjective::ClpObjective()
     18  : offset_(0.0)
     19  , type_(-1)
     20  , activated_(1)
    2121{
    22 
    2322}
    2423
     
    2625// Copy constructor
    2726//-------------------------------------------------------------------
    28 ClpObjective::ClpObjective (const ClpObjective & source) :
    29      offset_(source.offset_),
    30      type_(source.type_),
    31     activated_(source.activated_)
     27ClpObjective::ClpObjective(const ClpObjective &source)
     28  : offset_(source.offset_)
     29  , type_(source.type_)
     30  , activated_(source.activated_)
    3231{
    33 
    3432}
    3533
     
    3735// Destructor
    3836//-------------------------------------------------------------------
    39 ClpObjective::~ClpObjective ()
     37ClpObjective::~ClpObjective()
    4038{
    41 
    4239}
    4340
     
    4643//-------------------------------------------------------------------
    4744ClpObjective &
    48 ClpObjective::operator=(const ClpObjective& rhs)
     45ClpObjective::operator=(const ClpObjective &rhs)
    4946{
    50      if (this != &rhs) {
    51           offset_ = rhs.offset_;
    52           type_ = rhs.type_;
    53           activated_ = rhs.activated_;
    54      }
    55      return *this;
     47  if (this != &rhs) {
     48    offset_ = rhs.offset_;
     49    type_ = rhs.type_;
     50    activated_ = rhs.activated_;
     51  }
     52  return *this;
    5653}
    5754/* Subset clone.  Duplicates are allowed
     
    5956*/
    6057ClpObjective *
    61 ClpObjective::subsetClone (int,
    62                            const int * ) const
     58ClpObjective::subsetClone(int,
     59  const int *) const
    6360{
    64      std::cerr << "subsetClone not supported - ClpObjective" << std::endl;
    65      abort();
    66      return NULL;
     61  std::cerr << "subsetClone not supported - ClpObjective" << std::endl;
     62  abort();
     63  return NULL;
    6764}
    6865/* Given a zeroed array sets nonlinear columns to 1.
    6966   Returns number of nonlinear columns
    7067*/
    71 int
    72 ClpObjective::markNonlinear(char *)
     68int ClpObjective::markNonlinear(char *)
    7369{
    74      return 0;
     70  return 0;
    7571}
    7672
     73/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
     74*/
Note: See TracChangeset for help on using the changeset viewer.