data;
## data for sets ##
set ITEM := 19M12 19M14 19M7 194M7.5 19M8 19M9.5;
set ORIG := CH EU JP US;
set DEST := EU JP US;
## data for parameters ##
param avail: AU EU JP US:=
19M12 50 0 10 0
19M14 10 0 0 0
19M7 0 0 60 0
19M7.5 100 0 20 0
19M8 100 0 20 0
19M9.5 50 0 70 0;
param need: AU JP US:=
19M12 10 0 20
19M14 10 0 20
19M7 30 0 10
19M7.5 30 0 10
19M8 110 0 10
19M9.5 150 0 10;
param cost:EU JP US:=
CH 5 10 10
EU 0 9 9
JP 10 0 9
US 9 8 0;
param penalty_cost:= 1000;
sheet Now I would like to read the set of items, the avail and the need from excel tables (because I don't only want to look at 6 items, but at ca. 200.
I am aware that the connection to Excel is explained in the AMPL book, however, it did not get clear to me how to connect this to my data sheet or model. Can you give me any advice?
Many thanks,
Anna
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ampl/e1e45156-5982-4997-9eef-5bbd47e0d498%40googlegroups.com.