Please, read the sections on glp_mpl_read_data and glp_mpl_read_model.
Best regards
Heinrich Schuchardt
john tass <johnyt...@gmail.com>schrieb:
Hi everybody,_______________________________________________ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpkI have a C program that it is to define an entry point for a glpk project, i.e. I want to run the glpk trough the command line using a C application.In addition there is a file called MyModel.mod which contains my model and a separate file called MyData.dat containing the data used by the model.Inside my C application there are the statements:
glp *lp;char *ModelFileName = "MyModel.mod";char *DataFileName = "MyData.dat";lp = lp_read_model(ModelFileName, NULL, NULL);
The last statement above is for reading the model.I would like to ask which is the corresponding statement to read the MyData.dat file.In addition, I would like to ask how can I proceed in order to force the glpk to run using an initial solution file. Note that when I am using the glpk via the command line (without using a C application) I use the option:--ini InitialSolution.txtAnd a last question: how can I use the command line options : --pcost and --cuts , when I utilize a C application?Thank you very much for your time.
--
Ioannis X. Tassopoulos
_______________________________________________ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk