42 _m_nrSolutions(nrSolutions),
76 ofstream fp(filename.c_str());
80 ss <<
"BGIPSolution::Save: failed to open file " << filename << endl;
90 const int bufsize=65536;
93 ifstream fp(filename.c_str());
97 ss <<
"BGIPSolution::Load: failed to "
98 <<
"open file " << filename << endl;
105 fp.getline(buffer,bufsize);
106 istringstream is(buffer);
130 cout <<
"inserting policy# "<< pI <<
" with value " << v1 <<
"...";
135 cout <<
" NOT inserting (already in the queue)" << endl;
146 double v2 = overflownvp_p->
GetValue();
147 cout <<
"Removing overflown policy - policy# "<< pI2 <<
148 " (with value "<<v2<<
") "<< endl;
152 delete overflownvp_p;
157 cout <<
"added without overflow."<< endl;