Consider the following example model:
You get the idea. I might be the only one, and I know I could use singletons etc. to work around this issue, but again I feel like the sameas operator should not compare strings against the universal set but rather the set which is referenced in the operator.
Code: Select all
Set crops "crops" / wheat /; Set bots "botanical group" / wheats/; Parameter test(crops); test("wheat") = 1; * This should throw an error in my opinion, but it doesn't test(crops) $ (sameas (crops, "wheats")) = 1 ;
Just a feature I wish was included in GAMS.