Hi,
I have an integer set, a parameter with filenames, and a parameters with Aimms'standard date/time.
How do I select the newest file, or how to sort a parameter and select the first, or how to select the smallest, largest?
Thanks!
Solved
Select newest file, sort parameter
Best answer by mohansx
You can use the argmax and argmin functions to find the index which has the smallest / largest value.
So, Filename(argmax(i, dateparameter)) will give you the newest file / filename corresponding to the index which has the greatest (most recent date) value in the date/time parameter.
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.