source: trunk/Couenne/src/main/BonCouenneInfo.cpp @ 487

Last change on this file since 487 was 487, checked in by pbelotti, 9 years ago

adopting new build system in trunk

  • Property svn:keywords set to Author Date Id Revision
File size: 1004 bytes
Line 
1/* $Id: BonCouenneInfo.cpp 487 2011-01-10 16:18:44Z pbelotti $ */
2// (C) Copyright International Business Machines Corporation 2007
3// All Rights Reserved.
4// This code is published under the Common Public License.
5//
6// Authors :
7// Andreas Waechter, International Business Machines Corporation
8//
9// Date : 02/10/2008
10
11#include "BonCouenneInfo.hpp"
12
13using namespace Couenne;
14
15
16/** Default constructor.*/
17CouenneInfo::CouenneInfo(int type):
18  BabInfo(type)
19{}
20
21/** Constructor from OsiBabSolver.*/
22CouenneInfo::CouenneInfo(const OsiBabSolver &other):
23  BabInfo(other)
24{}
25
26/** Copy constructor.*/
27CouenneInfo::CouenneInfo(const CouenneInfo &other):
28  BabInfo(other)
29{}
30
31/** Destructor.*/
32CouenneInfo::~CouenneInfo()
33{}
34
35/** Virtual copy constructor.*/
36OsiAuxInfo *
37CouenneInfo::clone() const
38{
39  return new CouenneInfo(*this);
40}
41
42CouenneInfo::NlpSolution::NlpSolution(int n, const double* sol, double objval)
43  :
44  n_(n),
45  objVal_(objval)
46{
47  sol_ = new double[n];
48  CoinCopyN(sol, n, sol_);
49}
50
51CouenneInfo::NlpSolution::~NlpSolution()
52{
53  delete [] sol_;
54}
Note: See TracBrowser for help on using the repository browser.