| 
    Bonmin
    1.8.8
    
   | 
 
A class for reading a .col or .row file containing name for variables and constraints (usually ampl generated file). More...
#include <BonSolReader.hpp>
Public Member Functions | |
| SolReader (const char *fileName, const char *suffix) | |
| Constructor with a file name given by a const char *.  More... | |
| SolReader (const std::string &fileName="", const std::string &suffix=".col") | |
| Constructor with a file name given by a string and also default (empty string)  More... | |
| bool | readFile () | 
| Reads the .sol file.  More... | |
| bool | readFile (const std::string &file) | 
| Reads the .sol file fileName.  More... | |
| void | copySol (double *x) | 
| Copy the names to Names.  More... | |
| const double * | x () | 
| void | set_n_cols (int n) | 
| Set the number of variables in the problem.  More... | |
Private Attributes | |
| std::string | file_ | 
| Name of the file to read.  More... | |
| std::string | suffix_ | 
| Suffix of the file (".col", ".row")  More... | |
| vector< double > | x_ | 
| Sol values.  More... | |
A class for reading a .col or .row file containing name for variables and constraints (usually ampl generated file).
Definition at line 24 of file BonSolReader.hpp.
| Bonmin::SolReader::SolReader | ( | const char * | fileName, | 
| const char * | suffix | ||
| ) | 
Constructor with a file name given by a const char *.
| Bonmin::SolReader::SolReader | ( | const std::string & | fileName = "",  | 
        
| const std::string & | suffix = ".col"  | 
        ||
| ) | 
Constructor with a file name given by a string and also default (empty string)
| bool Bonmin::SolReader::readFile | ( | ) | 
Reads the .sol file.
Referenced by readFile().
      
  | 
  inline | 
Reads the .sol file fileName.
Definition at line 34 of file BonSolReader.hpp.
References file_, and readFile().
| void Bonmin::SolReader::copySol | ( | double * | x | ) | 
Copy the names to Names.
      
  | 
  inline | 
Definition at line 43 of file BonSolReader.hpp.
References x_.
      
  | 
  inline | 
Set the number of variables in the problem.
Definition at line 48 of file BonSolReader.hpp.
References x_.
      
  | 
  private | 
      
  | 
  private | 
Suffix of the file (".col", ".row")
Definition at line 56 of file BonSolReader.hpp.
      
  | 
  private | 
 1.8.5