Page 1 of 1

Error 148: Dimension different

Posted: Thu Dec 01, 2022 12:37 am
by HGS
Hello Dear Ones!

I am adapting the syntax of the dynamic model proposed by Hosoe, N, Gasawa, K, and Hashimoto, H to an economy with 11 products (i) and two families (fam). When I finished the syntax adaptation I encountered error 148, which returned the following message:

"Dimension different - The symbol is referenced with more/less indices as declared"

But I couldn't find the error in the model codes. I wonder if someone could help me identify the source of the error. I would be very grateful.

The file with the codes is attached to the message.
modelo.gms
(21.23 KiB) Downloaded 62 times

Re: Error 148: Dimension different

Posted: Thu Dec 01, 2022 9:02 am
by bussieck
You have now the composite consumption (CC) by family. What do you want to maximize? Their sum, the min of the two should be max, ... The objective variable needs to be a scalar variable.

-Michael