Hi Andrew, OK. I did as you suggested.
You are right. That stands (33,22) are not adjacent in time (i.e. j in AGECLASS) and space. The stands are adjacent but at Period 1, stand 33 has AGECLASS 7 while 22 has AGECLASS 5. This AGECLASS parameter (i.e. j in AGECLASS which the harvest age of the forest stand) makes this model quite complicated. My previous model does not have AGECLASS in the script but enumerated HARVEST CANDIDATES for Stands in the data section. Thanks. Regards, Noli On 5/10/16, Andrew Makhorin <[email protected]> wrote: > Noli, > > Your model is quite complicated, so it's difficult to me to inspect it. > As I understand you suspect that some constraints are not generated for > > subject to Adjacent_Constraint{ t in PERIOD, (i1,i2) in ADJACENT, j in > AGECLASS: isHarvestable[t,i1,j] and isHarvestable[t,i2,j] and (i1,i2) in > ADJACENT }: Y[t,i1,j] + Y[t,i2,j] <= 1; > > while they should be. Please find t, i1, i2, and j, for which this > happens, and add a display statement before s.t. Adjacent_Constraint ... > to display t, i1, i2, j, PERIOD, ADJACENT, AGECLASS, and isHarvestable. > Thanks. > > Andrew Makhorin > > > _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
