BonCouenneInfo.cpp
Go to the documentation of this file.
1 /* $Id: BonCouenneInfo.cpp 488 2011-01-10 17:06:41Z pbelotti $ */
2 // (C) Copyright International Business Machines Corporation 2007
3 // All Rights Reserved.
4 // This code is published under the Eclipse Public License (EPL).
5 //
6 // Authors :
7 // Andreas Waechter, International Business Machines Corporation
8 //
9 // Date : 02/10/2008
10 
11 #include "BonCouenneInfo.hpp"
12 
13 using namespace Couenne;
14 
15 
18  BabInfo(type)
19 {}
20 
22 CouenneInfo::CouenneInfo(const OsiBabSolver &other):
23  BabInfo(other)
24 {}
25 
28  BabInfo(other)
29 {}
30 
33 {}
34 
36 OsiAuxInfo *
38 {
39  return new CouenneInfo(*this);
40 }
41 
42 CouenneInfo::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 
52 {
53  delete [] sol_;
54 }
virtual ~CouenneInfo()
Destructor.
Bonmin class for passing info between components of branch-and-cuts.
double * sol_
values of the stored solution
CouenneInfo(int type)
Default constructor.
virtual OsiAuxInfo * clone() const
Virtual copy constructor.
void fint * n