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

    r1665 r2385  
    1818
    1919public:
     20  ///@name Stuff
     21  //@{
    2022
    21      ///@name Stuff
    22      //@{
    23 
    24      /** Returns objective coefficients.
     23  /** Returns objective coefficients.
    2524       
    2625       Offset is always set to 0.0. All other parameters unused.
    2726     */
    28      virtual double * gradient(const ClpSimplex * model,
    29                                const double * solution, double & offset, bool refresh,
    30                                int includeLinear = 2);
    31      /** Returns reduced gradient.Returns an offset (to be added to current one).
     27  virtual double *gradient(const ClpSimplex *model,
     28    const double *solution, double &offset, bool refresh,
     29    int includeLinear = 2);
     30  /** Returns reduced gradient.Returns an offset (to be added to current one).
    3231     */
    33      virtual double reducedGradient(ClpSimplex * model, double * region,
    34                                     bool useFeasibleCosts);
    35      /** Returns step length which gives minimum of objective for
     32  virtual double reducedGradient(ClpSimplex *model, double *region,
     33    bool useFeasibleCosts);
     34  /** Returns step length which gives minimum of objective for
    3635         solution + theta * change vector up to maximum theta.
    3736
     
    3938         Also sets current objective, predicted and at maximumTheta
    4039     */
    41      virtual double stepLength(ClpSimplex * model,
    42                                const double * solution,
    43                                const double * change,
    44                                double maximumTheta,
    45                                double & currentObj,
    46                                double & predictedObj,
    47                                double & thetaObj);
    48      /// Return objective value (without any ClpModel offset) (model may be NULL)
    49      virtual double objectiveValue(const ClpSimplex * model, const double * solution) const ;
    50      /// Resize objective
    51      virtual void resize(int newNumberColumns) ;
    52      /// Delete columns in  objective
    53      virtual void deleteSome(int numberToDelete, const int * which) ;
    54      /// Scale objective
    55      virtual void reallyScale(const double * columnScale) ;
     40  virtual double stepLength(ClpSimplex *model,
     41    const double *solution,
     42    const double *change,
     43    double maximumTheta,
     44    double &currentObj,
     45    double &predictedObj,
     46    double &thetaObj);
     47  /// Return objective value (without any ClpModel offset) (model may be NULL)
     48  virtual double objectiveValue(const ClpSimplex *model, const double *solution) const;
     49  /// Resize objective
     50  virtual void resize(int newNumberColumns);
     51  /// Delete columns in  objective
     52  virtual void deleteSome(int numberToDelete, const int *which);
     53  /// Scale objective
     54  virtual void reallyScale(const double *columnScale);
    5655
    57      //@}
     56  //@}
    5857
     58  ///@name Constructors and destructors
     59  //@{
     60  /// Default Constructor
     61  ClpLinearObjective();
    5962
    60      ///@name Constructors and destructors
    61      //@{
    62      /// Default Constructor
    63      ClpLinearObjective();
     63  /// Constructor from objective
     64  ClpLinearObjective(const double *objective, int numberColumns);
    6465
    65      /// Constructor from objective
    66      ClpLinearObjective(const double * objective, int numberColumns);
    67 
    68      /// Copy constructor
    69      ClpLinearObjective(const ClpLinearObjective &);
    70      /** Subset constructor.  Duplicates are allowed
     66  /// Copy constructor
     67  ClpLinearObjective(const ClpLinearObjective &);
     68  /** Subset constructor.  Duplicates are allowed
    7169         and order is as given.
    7270     */
    73      ClpLinearObjective (const ClpLinearObjective &rhs, int numberColumns,
    74                          const int * whichColumns) ;
     71  ClpLinearObjective(const ClpLinearObjective &rhs, int numberColumns,
     72    const int *whichColumns);
    7573
    76      /// Assignment operator
    77      ClpLinearObjective & operator=(const ClpLinearObjective& rhs);
     74  /// Assignment operator
     75  ClpLinearObjective &operator=(const ClpLinearObjective &rhs);
    7876
    79      /// Destructor
    80      virtual ~ClpLinearObjective ();
     77  /// Destructor
     78  virtual ~ClpLinearObjective();
    8179
    82      /// Clone
    83      virtual ClpObjective * clone() const;
    84      /** Subset clone.  Duplicates are allowed
     80  /// Clone
     81  virtual ClpObjective *clone() const;
     82  /** Subset clone.  Duplicates are allowed
    8583         and order is as given.
    8684     */
    87      virtual ClpObjective * subsetClone (int numberColumns,
    88                                          const int * whichColumns) const;
     85  virtual ClpObjective *subsetClone(int numberColumns,
     86    const int *whichColumns) const;
    8987
    90      //@}
     88  //@}
    9189
    92      //---------------------------------------------------------------------------
     90  //---------------------------------------------------------------------------
    9391
    9492private:
    95      ///@name Private member data
    96      /// Objective
    97      double * objective_;
    98      /// number of columns
    99      int numberColumns_;
    100      //@}
     93  ///@name Private member data
     94  /// Objective
     95  double *objective_;
     96  /// number of columns
     97  int numberColumns_;
     98  //@}
    10199};
    102100
    103101#endif
     102
     103/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
     104*/
Note: See TracChangeset for help on using the changeset viewer.