Try creating separate model and data files, like the ones TAREA2.mod and TAREA2.dat attached to this message. Then read them with model and data statements, like this:
model TAREA2.mod;
data TAREA2.dat;
solve;
When I do this, I do not see the "no data for set PLANTAS" message. Instead I see this error message:
error processing objective COSTOS:
invalid subscript TR['PLA1',1,1]
You define "var TR{PLANTAS, CENTROS, 1..T} integer >= 0" but in the objective you write "TR[m,1,t]". You are getting this error because 1 is not in the set CENTROS. Maybe you want to write this instead:
TR[m,"CEN1",t]
--
Robert Fourer
am...@googlegroups.com