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

Last change on this file since 154 was 154, checked in by pbelotti, 11 years ago

Id'd all remaining files

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/* $Id: BonCouenneInfo.cpp 154 2009-06-16 18:52:53Z 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
13namespace Bonmin
14{
15  /** Default constructor.*/
16  CouenneInfo::CouenneInfo(int type):
17      BabInfo(type)
18  {}
19
20  /** Constructor from OsiBabSolver.*/
21  CouenneInfo::CouenneInfo(const OsiBabSolver &other):
22      BabInfo(other)
23  {}
24
25  /** Copy constructor.*/
26  CouenneInfo::CouenneInfo(const CouenneInfo &other):
27      BabInfo(other)
28  {}
29
30  /** Destructor.*/
31  CouenneInfo::~CouenneInfo()
32  {}
33
34  /** Virtual copy constructor.*/
35  OsiAuxInfo *
36  CouenneInfo::clone() const
37  {
38    return new CouenneInfo(*this);
39  }
40
41  CouenneInfo::NlpSolution::NlpSolution(int n, const double* sol, double objval)
42    :
43    n_(n),
44    objVal_(objval)
45  {
46    sol_ = new double[n];
47    CoinCopyN(sol, n, sol_);
48  }
49
50  CouenneInfo::NlpSolution::~NlpSolution()
51  {
52    delete [] sol_;
53  }
54}/* end namespace Bonmin*/
55
Note: See TracBrowser for help on using the repository browser.