-------- Forwarded Message -------- From: Joao Flavio de Freitas Almeida <[email protected]> To: '[email protected]' <[email protected]> Cc: '[email protected]' <[email protected]>, 'João Flávio de Freitas Almeida' <[email protected]> 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 <[email protected]> Data: 28 de julho de 2011 13:37 Assunto: Re: [Help-glpk] script file foo.run Para: "\"João Flávio de Freitas Almeida\"" <[email protected]>, [email protected] 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
_______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
