Rglpk_read_file            package:Rglpk            R Documentation

_I_n_t_e_r_f_a_c_e _t_o _G_L_P_K'_s _f_i_l_e _r_e_a_d_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     High level R interface to the MPS and CPLEX_LP reader of the GNU
     Linear Programming Kit (GLPK).

_U_s_a_g_e:

     ## MPS file reader
     Rglpk_read_file(file, type = c("MPS_fixed", "MPS_free", "CPLEX_LP"),
     ignore_first_row = FALSE, verbose = FALSE) 

     ## print method
     ## S3 method for class 'MP_data_from_file':
     print(x, ...)

_A_r_g_u_m_e_n_t_s:

    file: a character specifying the relative or absolute path to the
          model file.

    type: a character specifying the file format. This can be either
          '"MPS_fixed"', '"MPS_free"' and '"CPLEX_LP"'.

ignore_first_row: a logical indicating whether the first row of the
          model file should be ignored or not. Default: 'FALSE'.

 verbose: a logical for turning on/off additional solver output.
          Default: 'FALSE'.

       x: an object of class '"MP_data_from_file"'.

     ...: further arguments passed on to the print method.

_D_e_t_a_i_l_s:

     'Rglpk_read_file()' takes the path to a file as an argument and
     calls GLPK's file reader. The description of the linear or mixed
     integer linear program is returned as an object of class
     '"MP_data_from_file"'.

_V_a_l_u_e:

     'Rglpk_read_file()' returns the specification of a mixed integer
     linear program defined in 'file' as an object of class
     '"MP_data_from_file"'.

_A_u_t_h_o_r(_s):

     Stefan Theussl

_E_x_a_m_p_l_e_s:

     ## not run:
     ## x <- Rglpk_read_file(some_file.MPS)
     ## x
     ## Rglpk_solve_LP(x$objective, x$constraints[[1]], x$constraints[[2]],
     ##                x$constraints[[3]], x$types, x$maximum, x$bounds)

