[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] [Fwd: RES: script file foo.run]
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] [Fwd: RES: script file foo.run] |
Date: |
Fri, 29 Jul 2011 16:52:06 +0400 |
-------- Forwarded Message --------
From: Joao Flavio de Freitas Almeida <address@hidden>
To: 'address@hidden' <address@hidden>
Cc: 'address@hidden' <address@hidden>, 'João Flávio de Freitas
Almeida' <address@hidden>
Subject: RES: [Help-glpk] script file foo.run
Date: Fri, 29 Jul 2011 08:55:02 -0300
Thanks Xypron for the quick answer!
The content of foo.run could have: (I send attached a file as an
example)
1. All printf functions (separating it from the model file and
setting the extensions .txt, .xls …etc without need to set these
parameters on model file) as the example below:
From: (param Finance, symbolic, default " Finance.txt";)
To: ( >>Finance.txt) at the end of each printf line.
2. All Glpk run parameters available on glpsol --help:
3. And a functionality to solve different random problems setting
parameters for loopping commands (using param, let, reset and solve
commands) for robust or stochastic optimization besides the model and
data (glpsol -m mymodel.mod -d mydata.dat) calls.
As presented in the AMPL link:
http://www.ampl.com/FAQ/#HowdoIsolveaseriesofdifferentrandomproblemswithdatadrawnfromthesamedistribution
param nruns := 5;
param optvalue {1..nruns};
for {k in 1..nruns} {
reset data avail;
solve;
let optvalue[k] := total_profit;
}
display (sum {k in 1..nruns} optvalue[k]) / nruns;
Best regards
João Flávio F. Almeida
---------- Mensagem encaminhada ----------
De: glpk xypron <address@hidden>
Data: 28 de julho de 2011 13:37
Assunto: Re: [Help-glpk] script file foo.run
Para: "\"João Flávio de Freitas Almeida\"" <address@hidden>,
address@hidden
Dear João,
what should be the content of foo.run?
Would it be more than a trivial shell script:
#!/bin/sh
glpsol -m mymodel.mod -d mydata.mod
Please, describe the value added.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Wed, 27 Jul 2011 23:14:21 -0300
> Betreff: [Help-glpk] script file foo.run
> Hi,
> Why Glpk doesn't have a script file for running models as CPLEX or
Gurobi?
> Wouldn't it be an improvement? Just a suggestion to consider or not.
> On prompt we would be able to call it by (for example):
>
> C:\gmpl foo.run
>
> Bests,
> João Flávio F. Almeida
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
________________________________________________________________________
Aviso Legal
Esta mensagem e/ou seus anexos podem conter informações privilegiadas,
sejam elas confidenciais, restritas ou internas das empresas do Grupo
Usiminas. Se você não for o destinatário ou a pessoa autorizada a
receber esta mensagem e/ou seus anexos, você não deve usar, copiar ou
divulgar as informações nela contida ou tomar qualquer ação baseada
nessas informações.
Este ambiente está sujeito a monitoramento.
Lawful Warning
This message and / or its attachments may contain privileged
information, either confidential, restricted or internal from the
USIMINAS Group’s companies. If you are not the receiver or authorized
person to receive this message and /or its attachments, you must not
use, copy or disclose the information contained in it or take any action
based on this information.
This environment is subject to monitoring.
SNP_51.run
Description: SNP_51.run
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-glpk] [Fwd: RES: script file foo.run],
Andrew Makhorin <=