I checked other subjects related to error 66 but I couldn't find an answer for my problem. I get the following:
66 The symbol shown has not been defined or assigned
A wild shot: You may have spurious commas in the explanatory
text of a declaration. Check symbol reference list.
256 Error(s) in analyzing solve statement. More detail appears
Below the solve statement above
299 Unexpected end of file
The problem is in the objective function. It does not say which symbol is undefined or unassigned.
I used "$onSymXRef " to check if everything was declared and defined and it was perfect. Why am I getting the same error? Here is my code and the include files.
HELP ME, PLEASE!
Error 66 even when all symbols are defined and assigned... help! Topic is solved
-
- User
- Posts: 2
- Joined: 4 years ago
Error 66 even when all symbols are defined and assigned... help!
- Attachments
-
- include files.rar
- (314.39 KiB) Downloaded 234 times
-
- MEPI.gms
- (9.21 KiB) Downloaded 247 times
Re: Error 66 even when all symbols are defined and assigned... help!
Hi,
If you look into the listing file, the first error you get is
After adding a semicolon after the solve statement yo get
You might want to assign values to CA and then it should work.
Fred
If you look into the listing file, the first error you get is
Code: Select all
**** $66,256,299 UNEXPECTED END OF FILE (1)
**** 3 ERROR(S) 0 WARNING(S)
Code: Select all
79414 solve MEPI using mip minimizing of;
**** $66,256
**** LINE 251 INPUT C:\Users\user\Documents\support\mepi\MEPI.gms
**** 66 The symbol shown has not been defined or assigned
**** A wild shot: You may have spurious commas in the explanatory
**** text of a declaration. Check symbol reference list.
**** 256 Error(s) in analyzing solve statement. More detail appears
**** Below the solve statement above
**** The following MIP errors were detected in model MEPI:
**** 66 equation mnghyd.. symbol "CA" has no values assigned
Fred
-
- User
- Posts: 2
- Joined: 4 years ago
Re: Error 66 even when all symbols are defined and assigned... help!
Thank you so much! It worked! I thought I had assigned all values...
Fred wrote: ↑4 years ago Hi,
If you look into the listing file, the first error you get is
After adding a semicolon after the solve statement yo getCode: Select all
**** $66,256,299 UNEXPECTED END OF FILE (1) **** 3 ERROR(S) 0 WARNING(S)
You might want to assign values to CA and then it should work.Code: Select all
79414 solve MEPI using mip minimizing of; **** $66,256 **** LINE 251 INPUT C:\Users\user\Documents\support\mepi\MEPI.gms **** 66 The symbol shown has not been defined or assigned **** A wild shot: You may have spurious commas in the explanatory **** text of a declaration. Check symbol reference list. **** 256 Error(s) in analyzing solve statement. More detail appears **** Below the solve statement above **** The following MIP errors were detected in model MEPI: **** 66 equation mnghyd.. symbol "CA" has no values assigned
Fred