source: trunk/include/ClpLinearObjective.hpp @ 225

Last change on this file since 225 was 225, checked in by forrest, 16 years ago

This should break everything

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1// Copyright (C) 2003, International Business Machines
2// Corporation and others.  All Rights Reserved.
3#ifndef ClpLinearObjective_H
4#define ClpLinearObjective_H
5
6#include "ClpObjective.hpp"
7
8//#############################################################################
9
10/** Linear Objective Class
11
12*/
13
14class ClpLinearObjective : public ClpObjective {
15 
16public:
17 
18  ///@name Stuff
19  //@{
20 
21  /** Returns gradient.  If Linear then solution may be NULL,
22      also returns an offset (to be added to current one)
23      If refresh is false then uses last solution
24  */
25  virtual double * gradient(const double * solution, double & offset,bool refresh);
26  /// Resize objective
27  virtual void resize(int newNumberColumns) ; 
28  /// Delete columns in  objective
29  virtual void deleteSome(int numberToDelete, const int * which) ; 
30 
31  //@}
32 
33 
34  ///@name Constructors and destructors
35  //@{
36  /// Default Constructor
37  ClpLinearObjective(); 
38 
39  /// Constructor from objective
40  ClpLinearObjective(const double * objective, int numberColumns); 
41 
42  /// Copy constructor
43  ClpLinearObjective(const ClpLinearObjective &);
44  /** Subset constructor.  Duplicates are allowed
45      and order is as given.
46  */
47  ClpLinearObjective (const ClpLinearObjective &rhs,int numberColumns, 
48                                      const int * whichColumns) ;
49 
50  /// Assignment operator
51  ClpLinearObjective & operator=(const ClpLinearObjective& rhs);
52 
53  /// Destructor
54  virtual ~ClpLinearObjective ();
55
56  /// Clone
57  virtual ClpObjective * clone() const;
58  /** Subset clone.  Duplicates are allowed
59      and order is as given.
60  */
61  virtual ClpObjective * subsetClone (int numberColumns, 
62                                      const int * whichColumns) const;
63 
64  //@}
65
66  //---------------------------------------------------------------------------
67 
68private:
69  ///@name Private member data
70  /// Objective
71  double * objective_;
72  /// number of columns
73  int numberColumns_;
74  //@}
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.