00001
00002
00003
00004
00005
00006
00007
00008
00009
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 }
00055