Hello Naurattan ------------------------------------------------------------ To: [email protected] Subject: [Help-glpk] [Fwd: .run file equivalent in GLPK?] Message-ID: <1351991366.2118.0.camel@corvax> From: Andrew Makhorin <[email protected]> Date: Sun, 04 Nov 2012 05:09:26 +0400 ------------------------------------------------------------
> -------- Forwarded Message -------- > From: Naurattan Makhija <[email protected]> > To: [email protected] > Subject: .run file equivalent in GLPK? > Date: Sat, 3 Nov 2012 18:42:19 -0400 > > Hello, > > I need to know if there is a .run file in GLPK such > as in AMPL, or a similar file that would work the > same as a .run file. I have to solve a complicated > problem in GLPK and can't write all the run code in > the command prompt. > > Thanks. It would be better if you registered with the [Help-glpk] list. That means that the maintainer does not have to manually forward you query. Have you considered a batch file? For Linux it would be: #! /bin/bash glpsol --option argument --option argument --option argument # end of file You need to set the file permissions to execute $ chmod u+x batch-file-name And invoke it: $ ./batch-file-name See here also (but not quite what you asked as I understand it): http://en.wikibooks.org/wiki/GLPK/Using_GLPSOL#Passing_values_via_the_command-line http://en.wikibooks.org/wiki/GLPK/Using_GLPSOL#xglpsol_bash_script HTH, Robbie --- Robbie Morrison PhD student -- policy-oriented energy system simulation Institute for Energy Engineering (IET) Technical University of Berlin (TU-Berlin), Germany University email (redirected) : [email protected] Webmail (preferred) : [email protected] [from Webmail client] _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
