// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
#include "CoinPragma.hpp"
#include "ClpSimplex.hpp"
#include "ClpObjective.hpp"
//#############################################################################
// Constructors / Destructor / Assignment
//#############################################################################
//-------------------------------------------------------------------
// Default Constructor
//-------------------------------------------------------------------
ClpObjective::ClpObjective () :
offset_(0.0),
type_(-1),
activated_(1)
{
}
//-------------------------------------------------------------------
// Copy constructor
//-------------------------------------------------------------------
ClpObjective::ClpObjective (const ClpObjective & source) :
offset_(source.offset_),
type_(source.type_),
activated_(source.activated_)
{
}
//-------------------------------------------------------------------
// Destructor
//-------------------------------------------------------------------
ClpObjective::~ClpObjective ()
{
}
//----------------------------------------------------------------
// Assignment operator
//-------------------------------------------------------------------
ClpObjective &
ClpObjective::operator=(const ClpObjective& rhs)
{
if (this != &rhs) {
offset_ = rhs.offset_;
type_ = rhs.type_;
activated_= rhs.activated_;
}
return *this;
}
/* Subset clone. Duplicates are allowed
and order is as given.
*/
ClpObjective *
ClpObjective::subsetClone (int numberColumns,
const int * whichColumns) const
{
std::cerr<<"subsetClone not supported - ClpObjective"<<std::endl;
abort();
return NULL;
}
/* Given a zeroed array sets nonlinear columns to 1.
Returns number of nonlinear columns
*/
int
ClpObjective::markNonlinear(char * which)
{
return 0;
}
syntax highlighted by Code2HTML, v. 0.9.1