Bonmin 1.8.9
Loading...
Searching...
No Matches
Bonmin::StartPointReader Class Reference

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

#include <BonStartPointReader.hpp>

Public Member Functions

 StartPointReader (std::string fileName="")
 Constructor with fileName_ given by a string (and default)
 
 StartPointReader (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 (OsiTMINLPInterface *solver)
 Read warmstart info and apply to an IpoptInterface.
 
 ~StartPointReader ()
 
void gutsOfDestructor ()
 Dealocate arrays.
 
const double * getPrimals ()
 Access primal variables values.
 
const double * getDuals ()
 Access 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 23 of file BonStartPointReader.hpp.

Constructor & Destructor Documentation

◆ StartPointReader() [1/2]

Bonmin::StartPointReader::StartPointReader ( std::string fileName = "")
inline

Constructor with fileName_ given by a string (and default)

Definition at line 27 of file BonStartPointReader.hpp.

◆ StartPointReader() [2/2]

Bonmin::StartPointReader::StartPointReader ( const char * fileName)
inline

Constructor with fileName_ given by a const char *.

Definition at line 33 of file BonStartPointReader.hpp.

◆ ~StartPointReader()

Bonmin::StartPointReader::~StartPointReader ( )
inline

Definition at line 49 of file BonStartPointReader.hpp.

Member Function Documentation

◆ readFile() [1/2]

bool Bonmin::StartPointReader::readFile ( )

Reads the .initP file.

◆ readFile() [2/2]

bool Bonmin::StartPointReader::readFile ( const std::string & fileName)
inline

Reads the .initP file fileName.

Definition at line 42 of file BonStartPointReader.hpp.

◆ readAndApply()

bool Bonmin::StartPointReader::readAndApply ( OsiTMINLPInterface * solver)

Read warmstart info and apply to an IpoptInterface.

◆ gutsOfDestructor()

void Bonmin::StartPointReader::gutsOfDestructor ( )
inline

Dealocate arrays.

Definition at line 56 of file BonStartPointReader.hpp.

◆ getPrimals()

const double * Bonmin::StartPointReader::getPrimals ( )
inline

Access primal variables values.

Definition at line 65 of file BonStartPointReader.hpp.

◆ getDuals()

const double * Bonmin::StartPointReader::getDuals ( )
inline

Access dual variables values.

Definition at line 70 of file BonStartPointReader.hpp.


The documentation for this class was generated from the following file: