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