IpCbcStartPointReader Class Reference

This class reads a file with a starting point for Ipopt initalization. More...

#include <IpCbcStartPointReader.hpp>

List of all members.

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.


Detailed Description

This class reads a file with a starting point for Ipopt initalization.

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.


Constructor & Destructor Documentation

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]

Definition at line 46 of file IpCbcStartPointReader.hpp.

References gutsOfDestructor().


Member Function Documentation

bool IpCbcStartPointReader::readFile (  ) 

Reads the .initP file.

Referenced by 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_.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Fri May 16 21:15:08 2008 for Bonmin by  doxygen 1.4.7