Page 1 of 1

I need help to fix these errors in my model

Posted: Sun Nov 19, 2023 10:34 pm
by Erosmoreno
DemandaSatisfecha(j, m).. sum(j, Demanda(j, m) + I(j, m-1)) =g= Demanda(j, m) + I(j, m-1);
**** $125
**** 125 Set is under control already
99
100 ProduccionIgualSuministro(j, m).. Produccion(j, m) =e= sum(j, X(j, j, m) + I(j, m-1));
**** $125
**** 125 Set is under control already
101
102 Model GasNaturalTransporte /all/;
103
104 Parameter
105 costos(j, m);
106
107 Solve GasNaturalTransporte Using MIP Minimizing sum((j, m), Costo(j, m)*I(j, m) + sum(h$(ord(h) ne ord(j)), Transporte(j, h)*X(j, h, m)));
**** $2 $243,257,409
**** 2 Identifier expected
**** 243 Objective is not a variable
**** 257 Solve statement not checked because of previous errors
**** 409 Unrecognizable item - skip to find a new statement
**** looking for a ';' or a key word to get started again

Re: I need help to fix these errors in my model

Posted: Fri Nov 24, 2023 3:34 am
by GabrielYin
Hi,

First, this should be related to your model, so probably Model section in this forum would be more appropriate.

Second, in your model, you are summing j in an equation indexed by j, which technically eliminates the j index in your equation. You would need to revise your modeling.

Best,
Gabriel