Exports the PSG problem from R to text files with problem in General (Text) format.
rpsg_exporttotext(path_tofiles, problem_list, rho = parent.frame(),
allowExt = TRUE, rpsg_suppress.Messages = FALSE)
character with path to *.txt file for storing PSG problem statement. All data needed for solving this problem will be stored in the same folder in separate .txt files. Name of the *.txt file for PSG problem statement should start with problem_.
list with data for optimization problem. List members:
problem_list$problem_statement
character with PSG Problem Statement;
problem_list$matrix_<name>
matrix with names of columns that correspond to names of optimization variables. Name of this list member (matrix_<name>) must coincide with the name of PSG Matrix in Problem Statement. Matrix may include two optional collumns: scenario_benchmark and scenario_probability;
problem_list$pmatrix_<name>
sparse matrix with names of columns that correspond to names of optimization variables. Name of this list member (pmatrix_<name>) must coincide with the name of PSG PMatrix in Problem Statement. PMatrix may include two optional collumns: scenario_benchmark and scenario_probability;
problem_list$point_<name>
vector with members' names that correspond to names of optimization variables. Name of this list member (point_<name>) must coincide with the name of PSG Point in Problem Statement;
problem_list$vector_<name>
vector with data. Name of this list member (vector_<name>) must coincide with the name of PSG Vector in Problem Statement.
optional parameter for setting frame. Default is rho = parent.frame().
optional parameter defining may solver use variables from data frame defined in rho (by the default allowExt = TRUE) or not (allowExt = FALSE).
optional parameter specifying if messages that may appear when you run this function should be suppressed (rpsg_suppress.Messages = TRUE) or not (by the default: rpsg_suppress.Messages = FALSE).
text files with problem in General (Text) format.