MAiNGO Reader Writer Utility
Public Member Functions | Private Member Functions | List of all members
maingo::readerWriter::MAiNGOReaderWriter Class Reference

Class for reading in GAMS convert files and writing problem.h files out of it. Moreover, it can read in bab.log files. It is not the fastest implementation possible but still pretty good, e.g., it is not needed to go through the GAMS file multiple times if it is known that all convert files look the same. This does not have to be true, e.g., the gams file could have been manipulated! Thus, reading the file more than once is the safest way, even if it's not the fastest one. More...

#include <MAiNGOReaderWriter.h>

Public Member Functions

 MAiNGOReaderWriter ()
 Default constructor.
 
 ~MAiNGOReaderWriter ()
 Destructor.
 
void read_GAMS_convert_file (const std::string &gamsFileName="gams.gms")
 Function for reading in a GAMS convert file. More...
 
void write_MAiNGO_problem_file (const std::string &problemFileName="problem_gams")
 Function for writing a MAiNGO problem.h file out of an already read in gams convert file. More...
 
void write_ALE_problem_file (const std::string &problemFileName="problem_gams")
 Function for writing an ALE problem.txt file out of an already read in gams convert file. More...
 
void print_problem_info_GAMS_file (std::ostream &outstream)
 Function for printing problem info given in a previously read GAMS file. More...
 
void convert_GAMS_folder_to_MAiNGO_problem (const std::string &input, const std::string &output)
 Function for reading in all GAMS files in folder input and writing MAiNGO problem files to folder output. More...
 
void convert_GAMS_folder_to_ALE_problem (const std::string &input, const std::string &output)
 Function for reading in all GAMS files in folder input and writing ALE problem files to folder output. More...
 
void print_problem_info_MAiNGO_log (std::ostream &outstream)
 Function for printing problem info given in a previously read GAMS file. More...
 
void read_MAiNGO_log_file (const std::string &maingoFileName="bab.log")
 Function for reading in a MAiNGO log file. More...
 
unsigned int get_number_variables_GAMS_file ()
 Function for getting total number of variables given in a previously read GAMS file.
 
unsigned int get_number_cont_variables_GAMS_file ()
 Function for getting number of continuous variables given in a previously read GAMS file.
 
unsigned int get_number_bin_variables_GAMS_file ()
 Function for getting number of binary variables given in a previously read GAMS file.
 
unsigned int get_number_int_variables_GAMS_file ()
 Function for getting number of integer variables given in a previously read GAMS file.
 
unsigned int get_number_constraints_GAMS_file ()
 Function for getting total number of constraints given in a previously read GAMS file.
 
unsigned int get_number_eq_constraints_GAMS_file ()
 Function for getting number of equality constraints given in a previously read GAMS file.
 
unsigned int get_number_gineq_constraints_GAMS_file ()
 Function for getting number of >= inequality constraints given in a previously read GAMS file.
 
unsigned int get_number_lineq_constraints_GAMS_file ()
 Function for getting number of <= inequality constraints given in a previously read GAMS file.
 
unsigned int get_number_fixed_variables_GAMS_file ()
 Function for getting number of fixed variables given in a previously read GAMS file.
 
unsigned int get_obj_variable_number_GAMS_file ()
 Function for getting the number of the objective variable given in a previously read GAMS file.
 
std::string get_obj_variable_name_GAMS_file ()
 Function for getting the name of the objective variable given in a previously read GAMS file.
 
bool get_minimizing_GAMS_file ()
 Function for getting _minimizing given in a previously read GAMS file.
 
unsigned int get_number_variables_MAiNGO_log ()
 Function for getting the number of variables read in from MAiNGO log.
 
unsigned int get_number_equalities_MAiNGO_log ()
 Function for getting the number of equalities read in from MAiNGO log.
 
unsigned int get_number_inequalities_MAiNGO_log ()
 Function for getting the number of inequalities read in from MAiNGO log.
 
unsigned int get_number_rel_only_eq_MAiNGO_log ()
 Function for getting the number of relaxation only equalities read in from MAiNGO log.
 
unsigned int get_number_rel_only_ineq_MAiNGO_log ()
 Function for getting the number of relaxation only inequalities read in from MAiNGO log.
 
unsigned int get_number_ubd_solved_MAiNGO_log ()
 Function for getting the number of solved ubd problems read in from MAiNGO log.
 
unsigned int get_number_lbd_solved_MAiNGO_log ()
 Function for getting the number of solved lbd problems read in from MAiNGO log.
 
unsigned int get_number_iterations_MAiNGO_log ()
 Function for getting the number of iterations read in from MAiNGO log.
 
unsigned int get_number_nodes_in_memory_MAiNGO_log ()
 Function for getting the number of nodes in memory read in from MAiNGO log.
 
unsigned int get_number_best_first_found_MAiNGO_log ()
 Function for getting the number of node where best solution was first found read in from MAiNGO log.
 
double get_final_lbd_MAiNGO_log ()
 Function for getting the number of final lbd read in from MAiNGO log.
 
double get_final_abs_gap_MAiNGO_log ()
 Function for getting the number of final abs gap read in from MAiNGO log.
 
double get_final_rel_gap_MAiNGO_log ()
 Function for getting the number of final rel gap read in from MAiNGO log.
 
double get_final_obj_val_MAiNGO_log ()
 Function for getting the number of final obj value read in from MAiNGO log.
 
double get_cpu_time_needed_MAiNGO_log ()
 Function for getting the number of CPU time needed read in from MAiNGO log.
 
double get_wall_time_needed_MAiNGO_log ()
 Function for getting the number of wall time needed read in from MAiNGO log.
 
bool get_feasibility_MAiNGO_log ()
 Function for getting if the problem is feasible read in from MAiNGO log.
 
std::vector< std::pair< std::string, double > > get_solution_point ()
 Function for getting the solution point read in from MAiNGO log.
 
std::vector< std::pair< std::string, double > > get_additional_output ()
 Function for getting additional output read in from MAiNGO log.
 

Private Member Functions

void _read_problem_info ()
 Function for reading and saving general problem info from a GAMS convert file.
 
void _read_variable_bounds ()
 Function for reading and saving variable bounds from a GAMS convert file.
 
void _read_initial_point ()
 Function for reading and saving the initial point.
 
void _read_constraints ()
 Function for reading and saving constraints. It also sets the correct objective function.
 
unsigned int _find_variable (const std::string &varName)
 Function for obtaining the correct vector index of variable with name varName. More...
 
void _set_variable_lower_bound (const std::string &varName, double lowerBound)
 Function for setting the lower bound of a variable. More...
 
void _set_variable_upper_bound (const std::string &varName, double upperBound)
 Function for setting the upper bound of a variable. More...
 
void _set_variable_initial_point (const std::string &varName, double value)
 Function for setting the initial point of a variable. More...
 
void _rename_powers (std::vector< Constraint > &constraints)
 Function for renaming power and ** to pow. More...
 
void _rename_double_asterisk (std::string &str)
 Function for renaming ** to pow. More...
 
void _rename_logs (std::vector< Constraint > &constraints)
 Function for renaming log10 to log/log(10) More...
 
void _add_division_log10 (std::string &str, const std::size_t posLog)
 Function for converting log10 GAMS function to log(x)/log(10) More...
 
void _write_MAiNGO_model (std::ofstream &outputFile, const std::string &problemName)
 Function for writing the MAiNGO model class to problem.h. More...
 
void _write_MAiNGO_variables (std::ofstream &outputFile)
 Function for writing MAiNGO variables to problem.h. More...
 
void _write_MAiNGO_initial_point (std::ofstream &outputFile)
 Function for writing the initial point to problem.h. More...
 
void _write_MAiNGO_constructor (std::ofstream &outputFile)
 Function for writing the constructor to problem.h. More...
 
std::string _insert_line_breaks_in_string (const std::string &str, const unsigned numberWhitespaces)
 Function for inserting line breaks into constraint strings to make the lines in problem.h not extremely long. More...
 
void _write_MAiNGO_evaluate (std::ofstream &outputFile)
 Function for writing the evaluation to problem.h. More...
 
void _write_ALE_variables (std::ofstream &outputFile)
 Function for writing ALE variables to problem.txt. More...
 
void _write_ALE_initial_point (std::ofstream &outputFile)
 Function for writing ALE initial point to problem.txt. More...
 
void _write_ALE_functions (std::ofstream &outputFile)
 Function for writing all constraints and the objective to ALE problem.txt. More...
 
void _check_for_MAiNGO ()
 Function for checking whether the provided MAiNGO log is really a MAiNGO log. The check is not rigorous!
 
void _remove_bab ()
 Function for removing the B&B iterations from the _file vector holding the MAiNGO log file lines.
 
void _check_feasibility ()
 Function for checking whether the problem provided in MAiNGO log is feasible.
 
void _read_statistics ()
 Function for reading the actual statistics from a MAiNGO log file.
 
 MAiNGOReaderWriter (const MAiNGOReaderWriter &)
 
MAiNGOReaderWriteroperator= (const MAiNGOReaderWriter &)
 

Private Attributes

Internal variables for storing information on the GAMS problem
std::string _gamsFileName
 
std::vector< std::string > _file
 
unsigned int _nvar
 
unsigned int _ncontVar
 
unsigned int _nbinVar
 
unsigned int _nintVar
 
unsigned int _ncons
 
unsigned int _neq
 
unsigned int _nlineq
 
unsigned int _ngineq
 
unsigned int _nfixedVar
 
unsigned int _objNr
 
std::string _objName
 
std::string _objFunction
 
bool _objSingle
 
bool _minimizing
 
std::vector< OptimizationVariable_contVariables
 
std::vector< OptimizationVariable_binVariables
 
std::vector< OptimizationVariable_intVariables
 
std::vector< Constraint_constraints
 
std::vector< Constraint_eqConstraints
 
std::vector< Constraint_gineqConstraints
 
std::vector< Constraint_lineqConstraints
 
std::vector< double > _initialPointCont
 
std::vector< unsigned int > _initialPointBin
 
std::vector< int > _initialPointInt
 
Internal variables for storing information given in the MAiNGO log, the letter 'M' is used to avoid name collision
std::string _maingoFileName
 
unsigned int _nvarM
 
unsigned int _neqM
 
unsigned int _nineqM
 
unsigned int _neqRelaxationOnlyM
 
unsigned int _nineqRelaxationOnlyM
 
unsigned int _ubdProblemsSolvedM
 
unsigned int _lbdProblemsSolvedM
 
unsigned int _niterationsM
 
unsigned int _nnodesInMemoryM
 
unsigned int _bestSolFirstFoundM
 
double _finalLBDM
 
double _finalAbsGapM
 
double _finalRelGapM
 
double _objValM
 
double _cpuTimeNeededM
 
double _wallTimeNeededM
 
bool _feasibleM
 
std::vector< std::pair< std::string, double > > _solutionPoint
 
std::vector< std::pair< std::string, double > > _additionalOutput
 

Detailed Description

Class for reading in GAMS convert files and writing problem.h files out of it. Moreover, it can read in bab.log files. It is not the fastest implementation possible but still pretty good, e.g., it is not needed to go through the GAMS file multiple times if it is known that all convert files look the same. This does not have to be true, e.g., the gams file could have been manipulated! Thus, reading the file more than once is the safest way, even if it's not the fastest one.

Constructor & Destructor Documentation

◆ MAiNGOReaderWriter()

maingo::readerWriter::MAiNGOReaderWriter::MAiNGOReaderWriter ( const MAiNGOReaderWriter )
private

default copy constructor declared private to prevent use

Member Function Documentation

◆ _add_division_log10()

void MAiNGOReaderWriter::_add_division_log10 ( std::string &  str,
const std::size_t  posLog 
)
private

Function for converting log10 GAMS function to log(x)/log(10)

Parameters
[in,out]stris the given string
[in]posLogis the position of the log10 within the string str

◆ _find_variable()

unsigned int MAiNGOReaderWriter::_find_variable ( const std::string &  varName)
private

Function for obtaining the correct vector index of variable with name varName.

Parameters
[in]varNameis the variableName
Returns
returns the vector index of the variable

◆ _insert_line_breaks_in_string()

std::string MAiNGOReaderWriter::_insert_line_breaks_in_string ( const std::string &  str,
const unsigned  numberWhitespaces 
)
private

Function for inserting line breaks into constraint strings to make the lines in problem.h not extremely long.

Parameters
[in]stris the string where line breaks will be added
[in]numberWhitespacesis the number of whitespaces, that are inserted after a new line has been added
Returns
Returns the function string with properly inserted line breaks

◆ _rename_double_asterisk()

void MAiNGOReaderWriter::_rename_double_asterisk ( std::string &  str)
private

Function for renaming ** to pow.

Parameters
[in,out]stris the given string

◆ _rename_logs()

void MAiNGOReaderWriter::_rename_logs ( std::vector< Constraint > &  constraints)
private

Function for renaming log10 to log/log(10)

Parameters
[in,out]constraintsis the vector holding the constraints

◆ _rename_powers()

void MAiNGOReaderWriter::_rename_powers ( std::vector< Constraint > &  constraints)
private

Function for renaming power and ** to pow.

Parameters
[in,out]constraintsis the vector holding the constraints

◆ _set_variable_initial_point()

void MAiNGOReaderWriter::_set_variable_initial_point ( const std::string &  varName,
double  value 
)
private

Function for setting the initial point of a variable.

Parameters
[in]varNameis the variable Name
[in]valueis the initial point value

◆ _set_variable_lower_bound()

void MAiNGOReaderWriter::_set_variable_lower_bound ( const std::string &  varName,
double  lowerBound 
)
private

Function for setting the lower bound of a variable.

Parameters
[in]varNameis the variable Name
[in]lowerBoundis the new lower bound

◆ _set_variable_upper_bound()

void MAiNGOReaderWriter::_set_variable_upper_bound ( const std::string &  varName,
double  upperBound 
)
private

Function for setting the upper bound of a variable.

Parameters
[in]varNameis the variable Name
[in]upperBoundis the new upper bound

◆ _write_ALE_functions()

void MAiNGOReaderWriter::_write_ALE_functions ( std::ofstream &  outputFile)
private

Function for writing all constraints and the objective to ALE problem.txt.

Parameters
[in,out]outputFileis the file to write to

◆ _write_ALE_initial_point()

void MAiNGOReaderWriter::_write_ALE_initial_point ( std::ofstream &  outputFile)
private

Function for writing ALE initial point to problem.txt.

Parameters
[in,out]outputFileis the file to write to

◆ _write_ALE_variables()

void MAiNGOReaderWriter::_write_ALE_variables ( std::ofstream &  outputFile)
private

Function for writing ALE variables to problem.txt.

Parameters
[in,out]outputFileis the file to write to

◆ _write_MAiNGO_constructor()

void MAiNGOReaderWriter::_write_MAiNGO_constructor ( std::ofstream &  outputFile)
private

Function for writing the constructor to problem.h.

Parameters
[in,out]outputFileis the file to write to

◆ _write_MAiNGO_evaluate()

void MAiNGOReaderWriter::_write_MAiNGO_evaluate ( std::ofstream &  outputFile)
private

Function for writing the evaluation to problem.h.

Parameters
[in,out]outputFileis the file to write to

◆ _write_MAiNGO_initial_point()

void MAiNGOReaderWriter::_write_MAiNGO_initial_point ( std::ofstream &  outputFile)
private

Function for writing the initial point to problem.h.

Parameters
[in,out]outputFileis the file to write to

◆ _write_MAiNGO_model()

void MAiNGOReaderWriter::_write_MAiNGO_model ( std::ofstream &  outputFile,
const std::string &  problemName 
)
private

Function for writing the MAiNGO model class to problem.h.

Parameters
[in]outputFileis the file to write to
[in]problemNameis the name of the problem file

◆ _write_MAiNGO_variables()

void MAiNGOReaderWriter::_write_MAiNGO_variables ( std::ofstream &  outputFile)
private

Function for writing MAiNGO variables to problem.h.

Parameters
[in]outputFileis the file to write to

◆ convert_GAMS_folder_to_ALE_problem()

void MAiNGOReaderWriter::convert_GAMS_folder_to_ALE_problem ( const std::string &  input,
const std::string &  output 
)

Function for reading in all GAMS files in folder input and writing ALE problem files to folder output.

Parameters
[in]inputis the input path, where the GAMS files are
[in]outputis the output path, where the ALE problem files shall be written

◆ convert_GAMS_folder_to_MAiNGO_problem()

void MAiNGOReaderWriter::convert_GAMS_folder_to_MAiNGO_problem ( const std::string &  input,
const std::string &  output 
)

Function for reading in all GAMS files in folder input and writing MAiNGO problem files to folder output.

Parameters
[in]inputis the input path, where the GAMS files are
[in]outputis the output path, where the MAiNGO problem files shall be written

◆ operator=()

MAiNGOReaderWriter& maingo::readerWriter::MAiNGOReaderWriter::operator= ( const MAiNGOReaderWriter )
private

default assignment operator declared private to prevent use

◆ print_problem_info_GAMS_file()

void MAiNGOReaderWriter::print_problem_info_GAMS_file ( std::ostream &  outstream)

Function for printing problem info given in a previously read GAMS file.

Parameters
[in,out]outstreamis the stream where to print

◆ print_problem_info_MAiNGO_log()

void MAiNGOReaderWriter::print_problem_info_MAiNGO_log ( std::ostream &  outstream)

Function for printing problem info given in a previously read GAMS file.

Parameters
[in]outstreamis the stream where to print

◆ read_GAMS_convert_file()

void MAiNGOReaderWriter::read_GAMS_convert_file ( const std::string &  gamsFileName = "gams.gms")

Function for reading in a GAMS convert file.

Parameters
[in]gamsFileNamename of input GAMS convert file

◆ read_MAiNGO_log_file()

void MAiNGOReaderWriter::read_MAiNGO_log_file ( const std::string &  maingoFileName = "bab.log")

Function for reading in a MAiNGO log file.

Parameters
[in]maingoFileNameis the name of input MAiNGO log file

◆ write_ALE_problem_file()

void MAiNGOReaderWriter::write_ALE_problem_file ( const std::string &  problemFileName = "problem_gams")

Function for writing an ALE problem.txt file out of an already read in gams convert file.

Parameters
[in]problemFileNameis the name of the output problem file

◆ write_MAiNGO_problem_file()

void MAiNGOReaderWriter::write_MAiNGO_problem_file ( const std::string &  problemFileName = "problem_gams")

Function for writing a MAiNGO problem.h file out of an already read in gams convert file.

Parameters
[in]problemFileNameis the name of the output problem file

Member Data Documentation

◆ _additionalOutput

std::vector<std::pair<std::string, double> > maingo::readerWriter::MAiNGOReaderWriter::_additionalOutput
private

Additional output variable names and values in the MAiNGO log

◆ _bestSolFirstFoundM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_bestSolFirstFoundM
private

Number of node where best solution was first found in the MAiNGO log

◆ _binVariables

std::vector<OptimizationVariable> maingo::readerWriter::MAiNGOReaderWriter::_binVariables
private

Vector holding binary variables in the GAMS file

◆ _constraints

std::vector<Constraint> maingo::readerWriter::MAiNGOReaderWriter::_constraints
private

Vector holding all constraints in the GAMS file

◆ _contVariables

std::vector<OptimizationVariable> maingo::readerWriter::MAiNGOReaderWriter::_contVariables
private

Vector holding continuous variables in the GAMS file

◆ _cpuTimeNeededM

double maingo::readerWriter::MAiNGOReaderWriter::_cpuTimeNeededM
private

CPU time needed in the MAiNGO log

◆ _eqConstraints

std::vector<Constraint> maingo::readerWriter::MAiNGOReaderWriter::_eqConstraints
private

Vector holding equality constraints in the GAMS file

◆ _feasibleM

bool maingo::readerWriter::MAiNGOReaderWriter::_feasibleM
private

Whether the problem is feasible or not in the MAiNGO log

◆ _file

std::vector<std::string> maingo::readerWriter::MAiNGOReaderWriter::_file
private

Vector holding all lines of a given GAMS file

◆ _finalAbsGapM

double maingo::readerWriter::MAiNGOReaderWriter::_finalAbsGapM
private

Final absolute gap in the MAiNGO log

◆ _finalLBDM

double maingo::readerWriter::MAiNGOReaderWriter::_finalLBDM
private

Final lbd in the MAiNGO log

◆ _finalRelGapM

double maingo::readerWriter::MAiNGOReaderWriter::_finalRelGapM
private

Final relative gap in the MAiNGO log

◆ _gamsFileName

std::string maingo::readerWriter::MAiNGOReaderWriter::_gamsFileName
private

Name of GAMS file to read in, default is gams.gms

◆ _gineqConstraints

std::vector<Constraint> maingo::readerWriter::MAiNGOReaderWriter::_gineqConstraints
private

Vector holding >= inequality constraints in the GAMS file

◆ _initialPointBin

std::vector<unsigned int> maingo::readerWriter::MAiNGOReaderWriter::_initialPointBin
private

Vector holding the initial values for binary variables in the GAMS file

◆ _initialPointCont

std::vector<double> maingo::readerWriter::MAiNGOReaderWriter::_initialPointCont
private

Vector holding the initial values for continuous variables in the GAMS file

◆ _initialPointInt

std::vector<int> maingo::readerWriter::MAiNGOReaderWriter::_initialPointInt
private

Vector holding the initial values for integer variables in the GAMS file

◆ _intVariables

std::vector<OptimizationVariable> maingo::readerWriter::MAiNGOReaderWriter::_intVariables
private

Vector holding integer variables in the GAMS file

◆ _lbdProblemsSolvedM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_lbdProblemsSolvedM
private

Number of solved lbd problems in the MAiNGO log

◆ _lineqConstraints

std::vector<Constraint> maingo::readerWriter::MAiNGOReaderWriter::_lineqConstraints
private

Vector holding <= inequality constraints in the GAMS file

◆ _maingoFileName

std::string maingo::readerWriter::MAiNGOReaderWriter::_maingoFileName
private

Name of MAiNGO log file to read in, default is bab.log

◆ _minimizing

bool maingo::readerWriter::MAiNGOReaderWriter::_minimizing
private

Tells whether we are minimizing or maximizing in the GAMS file

◆ _nbinVar

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nbinVar
private

Number of binary variables in the GAMS file

◆ _ncons

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_ncons
private

Total number of constraints in the GAMS file

◆ _ncontVar

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_ncontVar
private

Number of continuous variables in the GAMS file

◆ _neq

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_neq
private

Number of equality constraints in the GAMS file

◆ _neqM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_neqM
private

Number of equalities in the MAiNGO log

◆ _neqRelaxationOnlyM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_neqRelaxationOnlyM
private

Number of relaxation only equalities in the MAiNGO log

◆ _nfixedVar

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nfixedVar
private

Number of fixed variables in the GAMS file

◆ _ngineq

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_ngineq
private

Number of >= inequality constraints in the GAMS file

◆ _nineqM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nineqM
private

Number of inequalities in the MAiNGO log

◆ _nineqRelaxationOnlyM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nineqRelaxationOnlyM
private

Number of relaxation only inequalities in the MAiNGO log

◆ _nintVar

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nintVar
private

Number of integer variables in the GAMS file

◆ _niterationsM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_niterationsM
private

Number of iterations in the MAiNGO log

◆ _nlineq

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nlineq
private

Number of <= inequality constraints in the GAMS file

◆ _nnodesInMemoryM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nnodesInMemoryM
private

Maximal number of nodes in memory in the MAiNGO log

◆ _nvar

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nvar
private

Total number of variables in the GAMS file

◆ _nvarM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_nvarM
private

Total number of variables in the MAiNGO log

◆ _objFunction

std::string maingo::readerWriter::MAiNGOReaderWriter::_objFunction
private

Final objective function - may be equal to _objName in the GAMS file

◆ _objName

std::string maingo::readerWriter::MAiNGOReaderWriter::_objName
private

Name of objective variable in the GAMS file

◆ _objNr

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_objNr
private

Number of objective variable in the GAMS file

◆ _objSingle

bool maingo::readerWriter::MAiNGOReaderWriter::_objSingle
private

If this is true, the objective function is unique in the GAMS file

◆ _objValM

double maingo::readerWriter::MAiNGOReaderWriter::_objValM
private

Final objective value in the MAiNGO log

◆ _solutionPoint

std::vector<std::pair<std::string, double> > maingo::readerWriter::MAiNGOReaderWriter::_solutionPoint
private

Solution point variable names and values in the MAiNGO log

◆ _ubdProblemsSolvedM

unsigned int maingo::readerWriter::MAiNGOReaderWriter::_ubdProblemsSolvedM
private

Number of solved ubd problems in the MAiNGO log

◆ _wallTimeNeededM

double maingo::readerWriter::MAiNGOReaderWriter::_wallTimeNeededM
private

Wall time needed in the MAiNGO log


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