help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] ANSI C program as definning entry point for glpk


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] ANSI C program as definning entry point for glpk
Date: Fri, 3 Apr 2015 07:38:07 +0200

Glpk 4.55 comes with file doc/glpk.pdf.

Please, read the sections on glp_mpl_read_data and glp_mpl_read_model.

Best regards

Heinrich Schuchardt



john tass <address@hidden>schrieb:
Hi everybody,
I 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.txt
And 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 address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]