If I have a variable where row A is timeline with index t and B are calculated values, how to calculate Non-zero Average of Values in B?
A | 1 | 2 | 3 | 4 | 5 |
B | 4 | 0 | 6 | 0 | 7 |
If I have a variable where row A is timeline with index t and B are calculated values, how to calculate Non-zero Average of Values in B?
A | 1 | 2 | 3 | 4 | 5 |
B | 4 | 0 | 6 | 0 | 7 |
Mean$(i, B(i))
or
Mean(i|B(i), B(i))
See Modifying the Sparsity — AIMMS Language Reference
Already have an account? Login
Please use your business or academic e-mail address to register
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Didn't find what you were looking for? Try searching on our documentation pages: