00001 /* $Id: BonCouenneInfo.cpp 154 2009-06-16 18:52:53Z pbelotti $ */ 00002 // (C) Copyright International Business Machines Corporation 2007 00003 // All Rights Reserved. 00004 // This code is published under the Common Public License. 00005 // 00006 // Authors : 00007 // Andreas Waechter, International Business Machines Corporation 00008 // 00009 // Date : 02/10/2008 00010 00011 #include "BonCouenneInfo.hpp" 00012 00013 namespace Bonmin 00014 { 00016 CouenneInfo::CouenneInfo(int type): 00017 BabInfo(type) 00018 {} 00019 00021 CouenneInfo::CouenneInfo(const OsiBabSolver &other): 00022 BabInfo(other) 00023 {} 00024 00026 CouenneInfo::CouenneInfo(const CouenneInfo &other): 00027 BabInfo(other) 00028 {} 00029 00031 CouenneInfo::~CouenneInfo() 00032 {} 00033 00035 OsiAuxInfo * 00036 CouenneInfo::clone() const 00037 { 00038 return new CouenneInfo(*this); 00039 } 00040 00041 CouenneInfo::NlpSolution::NlpSolution(int n, const double* sol, double objval) 00042 : 00043 n_(n), 00044 objVal_(objval) 00045 { 00046 sol_ = new double[n]; 00047 CoinCopyN(sol, n, sol_); 00048 } 00049 00050 CouenneInfo::NlpSolution::~NlpSolution() 00051 { 00052 delete [] sol_; 00053 } 00054 }/* end namespace Bonmin*/ 00055