17 if(!inFile.is_open()) {
18 std::cerr<<
"Error in opening initial point file";
23 inFile>>numPrimals>>numDuals;
26 duals_ =
new double[numDuals];
27 for(
int i = 0; i < numPrimals ; i++) {
30 for(
int i = 0; i < numDuals ; i++) {
43 std::cerr<<
"No warm start info ???"<<std::endl;
49 std::cerr<<
"No warm start info ???"<<std::endl;
std::string fileName_
Name of the file with initial point.
This is class provides an Osi interface for a Mixed Integer Linear Program expressed as a TMINLP (so ...
void gutsOfDestructor()
Dealocate arrays.
double * primals_
Primal variables values.
bool readAndApply(OsiTMINLPInterface *solver)
Read warmstart info and apply to an IpoptInterface.
bool readFile()
Reads the .initP file.
const Bonmin::TNLPSolver * solver() const
double * duals_
Dual variables values.
virtual void setColSolution(const double *colsol)
Set the primal solution variable values Set the values for the starting point.
virtual void enableWarmStart()=0
Enable the warm start options in the solver.
virtual void setRowPrice(const double *rowprice)
Set dual solution variable values.