I have following unit consistency warning for the expression below:
{i| sum((p,yr),TLin(i,p,yr)) <> 0}
Warning: The units associated with the expression (sum( ( p, yr ) , TLin(i,p,yr) ) )[m3], and with the expression (0)[] are not commensurate.
Is there a trick to get around this? I know I can define a parameter with a value 0 and unit m3, but do not want add modelling complexity for such a minor issue.
Any suggestions are welcome.
With kind regards,
Binod
Page 1 / 1
Hi, @bkoirala .
You could write:
Hope it helps!
You could write:
code:
i| sum((p,yr),TLin(i,p,yr)) <> 0 [m3]
Hope it helps!
Another ideas that could be useful for you in the future:
You can read about the function mapval: http://aimms.com/files/3914/5566/1567/AIMMS_func.pdf
or use some syntax like: "i | not sum((p,yr),TLin(i,p,yr))". But you should be careful using "not" beacause it considers the default of the parameters, if I recall correctly.
You can read about the function mapval: http://aimms.com/files/3914/5566/1567/AIMMS_func.pdf
or use some syntax like: "i | not sum((p,yr),TLin(i,p,yr))". But you should be careful using "not" beacause it considers the default of the parameters, if I recall correctly.
Thank you @mateusarakawa , very useful!
Reply
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.