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