Bonmin::BoundsReader Class Reference

Reads a file containing change bounds for variables. More...

#include <BonBoundsReader.hpp>

Collaboration diagram for Bonmin::BoundsReader:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BoundsReader ()
 BoundsReader (const std::string &fileName)
void setFileName (const std::string &fileName)
 ~BoundsReader ()
void gutsOfDestructor ()
void read (const std::string &)
void read ()
void readAndApply (OsiTMINLPInterface *solver)

Private Attributes

std::string fileName_
 Current file.
double * lowerBounds_
 changed lower bounds
double * upperBounds_
 changed upper bounds
int * indexLowers_
 index of the changed lowerBounds_
int * indexUppers_
 index of the changed upperBounds_
int nLower_
 number of changed lowerBounds_
int nUpper_
 number of changed upperBounds_

Detailed Description

Reads a file containing change bounds for variables.

Files follows pretty much the Bounds section in MPS standard.

Definition at line 20 of file BonBoundsReader.hpp.


Constructor & Destructor Documentation

Bonmin::BoundsReader::BoundsReader (  )  [inline]

Definition at line 24 of file BonBoundsReader.hpp.

Bonmin::BoundsReader::BoundsReader ( const std::string &  fileName  )  [inline]

Definition at line 33 of file BonBoundsReader.hpp.

Bonmin::BoundsReader::~BoundsReader (  ) 

Definition at line 15 of file BonBoundsReader.cpp.

References gutsOfDestructor().


Member Function Documentation

void Bonmin::BoundsReader::setFileName ( const std::string &  fileName  )  [inline]

Definition at line 44 of file BonBoundsReader.hpp.

References fileName_.

Referenced by read().

void Bonmin::BoundsReader::gutsOfDestructor (  ) 

Definition at line 19 of file BonBoundsReader.cpp.

References indexLowers_, indexUppers_, lowerBounds_, nLower_, nUpper_, and upperBounds_.

Referenced by read(), and ~BoundsReader().

void Bonmin::BoundsReader::read ( const std::string &   ) 

Definition at line 49 of file BonBoundsReader.cpp.

References read(), and setFileName().

void Bonmin::BoundsReader::read (  ) 

Definition at line 55 of file BonBoundsReader.cpp.

References fileName_, gutsOfDestructor(), indexLowers_, indexUppers_, lowerBounds_, nLower_, nUpper_, and upperBounds_.

Referenced by read(), and readAndApply().

void Bonmin::BoundsReader::readAndApply ( OsiTMINLPInterface solver  ) 

Definition at line 111 of file BonBoundsReader.cpp.

References indexLowers_, indexUppers_, lowerBounds_, nLower_, nUpper_, read(), Bonmin::OsiTMINLPInterface::setColLower(), Bonmin::OsiTMINLPInterface::setColUpper(), and upperBounds_.

Referenced by main().


Member Data Documentation

std::string Bonmin::BoundsReader::fileName_ [private]

Current file.

Definition at line 67 of file BonBoundsReader.hpp.

Referenced by read(), and setFileName().

double* Bonmin::BoundsReader::lowerBounds_ [private]

changed lower bounds

Definition at line 69 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().

double* Bonmin::BoundsReader::upperBounds_ [private]

changed upper bounds

Definition at line 71 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().

int* Bonmin::BoundsReader::indexLowers_ [private]

index of the changed lowerBounds_

Definition at line 73 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().

int* Bonmin::BoundsReader::indexUppers_ [private]

index of the changed upperBounds_

Definition at line 75 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().

int Bonmin::BoundsReader::nLower_ [private]

number of changed lowerBounds_

Definition at line 77 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().

int Bonmin::BoundsReader::nUpper_ [private]

number of changed upperBounds_

Definition at line 79 of file BonBoundsReader.hpp.

Referenced by gutsOfDestructor(), read(), and readAndApply().


The documentation for this class was generated from the following files:
Generated on Thu Aug 5 03:12:27 2010 by  doxygen 1.4.7