#include <IpCbcStartPointReader.hpp>
Public Member Functions | |
IpCbcStartPointReader (std::string fileName="") | |
Constructor with fileName_ given by a string (and default). | |
IpCbcStartPointReader (const char *fileName) | |
Constructor with fileName_ given by a const char *. | |
bool | readFile () |
Reads the .initP file. | |
bool | readFile (const std::string &fileName) |
Reads the .initP file fileName. | |
bool | readAndApply (IpoptInterface &solver) |
Read warmstart info and apply to an IpoptInterface. | |
~IpCbcStartPointReader () | |
void | gutsOfDestructor () |
Dealocate arrays. | |
const double * | getPrimals () |
Access primal variables values. | |
const double * | getDuals () |
Access dual variables values. | |
Private Attributes | |
std::string | fileName_ |
Name of the file with initial point. | |
double * | primals_ |
Primal variables values. | |
double * | duals_ |
Dual variables values. |
File format is number of primals number of duals then values one after another Numbering of variables is first variables, then duals on lower bounds duals on upper bounds and to finish duals on constraints
Definition at line 20 of file IpCbcStartPointReader.hpp.
IpCbcStartPointReader::IpCbcStartPointReader | ( | std::string | fileName = "" |
) | [inline] |
Constructor with fileName_ given by a string (and default).
Definition at line 24 of file IpCbcStartPointReader.hpp.
IpCbcStartPointReader::IpCbcStartPointReader | ( | const char * | fileName | ) | [inline] |
Constructor with fileName_ given by a const char *.
Definition at line 30 of file IpCbcStartPointReader.hpp.
IpCbcStartPointReader::~IpCbcStartPointReader | ( | ) | [inline] |
bool IpCbcStartPointReader::readFile | ( | ) |
bool IpCbcStartPointReader::readFile | ( | const std::string & | fileName | ) | [inline] |
Reads the .initP file fileName.
Definition at line 39 of file IpCbcStartPointReader.hpp.
References fileName_, and readFile().
bool IpCbcStartPointReader::readAndApply | ( | IpoptInterface & | solver | ) |
Read warmstart info and apply to an IpoptInterface.
void IpCbcStartPointReader::gutsOfDestructor | ( | ) | [inline] |
Dealocate arrays.
Definition at line 53 of file IpCbcStartPointReader.hpp.
References duals_, and primals_.
Referenced by ~IpCbcStartPointReader().
const double* IpCbcStartPointReader::getPrimals | ( | ) | [inline] |
Access primal variables values.
Definition at line 62 of file IpCbcStartPointReader.hpp.
References primals_.
const double* IpCbcStartPointReader::getDuals | ( | ) | [inline] |
Access dual variables values.
Definition at line 67 of file IpCbcStartPointReader.hpp.
References duals_.
std::string IpCbcStartPointReader::fileName_ [private] |
Name of the file with initial point.
Definition at line 73 of file IpCbcStartPointReader.hpp.
Referenced by readFile().
double* IpCbcStartPointReader::primals_ [private] |
Primal variables values.
Definition at line 76 of file IpCbcStartPointReader.hpp.
Referenced by getPrimals(), and gutsOfDestructor().
double* IpCbcStartPointReader::duals_ [private] |
Dual variables values.
Definition at line 78 of file IpCbcStartPointReader.hpp.
Referenced by getDuals(), and gutsOfDestructor().