Hi Joao

------------------------------------------------------------
To:           [email protected]
Subject:      [Help-glpk] [Fwd: RES:  script file foo.run]
Message-ID:  <1311943926.6823.0.camel@corvax>
From:         Andrew Makhorin <[email protected]>
Date:         Fri, 29 Jul 2011 16:52:06 +0400
------------------------------------------------------------

> -------- 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.

[snip]

> Best regards
>
> Jo?o Fl?vio F. Almeida

Here are a couple of pointers to scripts that invoke
GLPSOL.  They may provide some of the functionality you
were suggesting (or at least give a starting point for
further development):

  
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

See also:

  http://en.wikibooks.org/wiki/GLPK/Scripting_plus_MathProg

thanks for your contribution, best wishes
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
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

Reply via email to