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