But GAMS tell me Error 148: Dimension different – The symbol is referenced with more/less indices as declared.
All of my parameters are correct and I checked these.
Please help me, How I can fix it?
Look further. There is another error at the same location “**** 201 Invalid argument for function”. nn is a set (element) and not a number. If the set elements of nn can be interpreted as a numbers e.g. “1”,“2”,“3”,… then replace nn by nn.val. Otherwise create a parameter that maps nn to a value. There are more error. You use nnn and close the sum too early… The following compiles. I have not checked if this really represents your formula: