Topics started by aims_user
Hi Aimms Community, I’m having trouble using the Sort function in order to obtain the values of a mulit-dimensional array: For example:multi-dimensional array = foo(size,car,color,location) size, car, color, location = some float value [ ‘small’, ‘toyota’, ‘white’, ‘usa’] = 1.25 [ ‘small’, ‘toyota’, ‘green’, ‘greenland’] = .5 [ ‘small’, ‘nissan’, ‘blue’, ‘france’’] = 1.0[ ‘small’, ‘nissan’, ‘green’, ‘france’’] = .3 In this case we are looking to sort foo by the values for all colors and locations where the size and car are the same, meaning that the result would be put into another variable bar(size,car,row)[ ‘small’, ‘toyota’, 1] = .5[ ‘small’, ‘toyota’, 2] = 1.25[ ‘small’, ‘nissan’, 1] = .3[ ‘small’, ‘nissan’, 2] = 1.0 How do I approach this problem? I looked through the documentation but I see that the Sort operator is really trying to sort by an index of an array and not the values for given indexes. Thanks for any help
I’m trying to see the nominal coefficients property for a variable. I have CoefficientRange property selected and my Calculate Sensitivity Ranges is ON. However, it doesn’t show the property when the problem is solved with AIMMS Linear Presolve being OFF? Please advise. Here’s the documentation I found:.NominalCoefficient Definition: When the property CoefficientRange of a variable is set and the option Calculate Sensitivity Ranges is not set to off a coefficient range sensitivity analysis is conducted such that the optimal basis remains constant. As a result of this analysis the variable suffix .NominalCoefficient contains the nominal objective coefficient value.
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 username or e-mail address. We'll send you an e-mail with instructions to reset your password.