[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] assign parameter(s) from file
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] assign parameter(s) from file |
Date: |
Fri, 16 Apr 2010 21:35:46 +0200 |
Hello Jeff,
table IN requires an indexing set.
For an example how to handle parameters refer to
examples/csv/transp_csv.mod
You will find the following lines of interest:
table tab_parameter IN "CSV" "parameters.csv" :
L <- [parameter], e ~ value ;
param c{i in I, j in J} := e['transport cost'] * d[i,j] / 1000;
/* transport cost in thousands of dollars per case */
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Fri, 16 Apr 2010 11:50:35 +0400
> Von: Jeff Hamann
> An: address@hidden
> Betreff: [Help-glpk] assign parameter(s) from file
> I would like to assign a parameter (single parameter) from a file, using
> the table functionality. For example, I can generate a file that contains:
>
> "woodflow"
> 0.002
>
> and I would like to assign a parameter in the mod file:
>
> param max_woodfow;
>
> table data IN "CSV" "woodflow-deviation.csv" : ??? <- ??? , woodflow ~
> flow;
>
> but without assigning a set to anything. Is this possible? If so, how?
>
> Jeff.
>
> Jeff Hamann
> address@hidden
>
>
>
>
>
>
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01