source: trunk/Clp/src/ClpObjective.cpp @ 2470

Last change on this file since 2470 was 2385, checked in by unxusr, 9 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/* $Id: ClpObjective.cpp 2385 2019-01-06 19:43:06Z stefan $ */
2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#include "CoinPragma.hpp"
7#include "ClpSimplex.hpp"
8#include "ClpObjective.hpp"
9
10//#############################################################################
11// Constructors / Destructor / Assignment
12//#############################################################################
13
14//-------------------------------------------------------------------
15// Default Constructor
16//-------------------------------------------------------------------
17ClpObjective::ClpObjective()
18  : offset_(0.0)
19  , type_(-1)
20  , activated_(1)
21{
22}
23
24//-------------------------------------------------------------------
25// Copy constructor
26//-------------------------------------------------------------------
27ClpObjective::ClpObjective(const ClpObjective &source)
28  : offset_(source.offset_)
29  , type_(source.type_)
30  , activated_(source.activated_)
31{
32}
33
34//-------------------------------------------------------------------
35// Destructor
36//-------------------------------------------------------------------
37ClpObjective::~ClpObjective()
38{
39}
40
41//----------------------------------------------------------------
42// Assignment operator
43//-------------------------------------------------------------------
44ClpObjective &
45ClpObjective::operator=(const ClpObjective &rhs)
46{
47  if (this != &rhs) {
48    offset_ = rhs.offset_;
49    type_ = rhs.type_;
50    activated_ = rhs.activated_;
51  }
52  return *this;
53}
54/* Subset clone.  Duplicates are allowed
55   and order is as given.
56*/
57ClpObjective *
58ClpObjective::subsetClone(int,
59  const int *) const
60{
61  std::cerr << "subsetClone not supported - ClpObjective" << std::endl;
62  abort();
63  return NULL;
64}
65/* Given a zeroed array sets nonlinear columns to 1.
66   Returns number of nonlinear columns
67*/
68int ClpObjective::markNonlinear(char *)
69{
70  return 0;
71}
72
73/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
74*/
Note: See TracBrowser for help on using the repository browser.