help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Passing command line paramters to GLPK


From: glpk xypron
Subject: Re: [Help-glpk] Passing command line paramters to GLPK
Date: Sat, 17 May 2008 07:39:51 +0200

Hello Andrew,

when invoking AMPL from the command line it is not possible to pass parameter 
assignments on the command line (tested with the student version).

Commands can be passed as pipe, e.g. 
ampl.exe < test.txt.

type test1.txt con: test2.txt | ampl.exe
will execute the commands in test1.txt, allow entry from the console until 
CTRL-Z, and afterwards execute the commands in test2.txt.

As AMPL can be executed interactively of cause passwords could be entered at 
the ampl prompt:

C:\Program Files\AMPL> ampl.exe 
ampl: model 1.mod;
ampl: param password_ali_baba := 'open sesame';
ampl: data 1.dat;
ampl: solve;
ampl: quit;

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Fri, 16 May 2008 15:27:43 +0400
> Von: Andrew Makhorin
> An: xypron
> CC: Help-glpk
> Betreff: Re: [Help-glpk] Passing command line paramters to GLPK

> > for using SQL queries the database password must be used in the GLPK
> model.
> > It is unwise to save passwords in unencrypted files. In business
> > environments regulation often explicitly forbids such behavior.
> 
> > The solution you kindly suggested would leave the password on the
> harddisk.
> 
> > Being able to use additional command line parameters would allow to
> > circumvent the problem.
> 
> The other way might be passing the model file to glpsol through a pipe.
> 
> It would interesting to know how this problem is resolved in the AMPL
> system. May be someone on the list knows that?

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger




reply via email to

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