source: tags/move-to-subversion/ClpObjective.cpp @ 1355

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

Some quadratic stuff

  • 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) 2002, International Business Machines
2// Corporation and others.  All Rights Reserved.
3
4#include "CoinPragma.hpp"
5#include "ClpSimplex.hpp"
6#include "ClpObjective.hpp"
7
8//#############################################################################
9// Constructors / Destructor / Assignment
10//#############################################################################
11
12//-------------------------------------------------------------------
13// Default Constructor
14//-------------------------------------------------------------------
15ClpObjective::ClpObjective () :
16  offset_(0.0),
17  type_(-1),
18  activated_(1)
19{
20
21}
22
23//-------------------------------------------------------------------
24// Copy constructor
25//-------------------------------------------------------------------
26ClpObjective::ClpObjective (const ClpObjective & source) :
27  offset_(source.offset_),
28  type_(source.type_),
29  activated_(source.activated_)
30{ 
31
32}
33
34//-------------------------------------------------------------------
35// Destructor
36//-------------------------------------------------------------------
37ClpObjective::~ClpObjective ()
38{
39
40}
41
42//----------------------------------------------------------------
43// Assignment operator
44//-------------------------------------------------------------------
45ClpObjective &
46ClpObjective::operator=(const ClpObjective& rhs)
47{
48  if (this != &rhs) {
49    offset_ = rhs.offset_;
50    type_ = rhs.type_;
51    activated_= rhs.activated_;
52  }
53  return *this;
54}
55/* Subset clone.  Duplicates are allowed
56   and order is as given.
57*/
58ClpObjective * 
59ClpObjective::subsetClone (int numberColumns, 
60                           const int * whichColumns) const
61{
62  std::cerr<<"subsetClone not supported - ClpObjective"<<std::endl;
63  abort();
64  return NULL;
65}
66/* Given a zeroed array sets nonlinear columns to 1.
67   Returns number of nonlinear columns
68*/
69int 
70ClpObjective::markNonlinear(char * which)
71{
72  return 0;
73}
74
Note: See TracBrowser for help on using the repository browser.