We have a relatively simple math program with the potential for duplicate columns. However, knowledge of which variables are duplicates is actually beneficial to the user.
While I could go through and examine my parameters/constraints to manually search these, a much faster (computationally speaking) option would just be to have CPLEX report them out to the user, as I wouldn’t need to iterate through lots of parameters. Is there a way I can easily take these warnings from CPLEX and give them to the user? Any help would be appreciated here.
Thank you in advance!
Page 1 / 1
The warnings you see about duplicate columns do not come from the solver, but they are coming from AIMMS itself.
One way you can deal with this is catching the warnings within a block that has an onerror err do part.
You can then parse the warnings that AIMMS is giving and return them to your user.
The one thing I am not sure about is whether you will get to see ALL warnings (in the warnings window you typically will see something like showing only X number of errors, rest is discarded).
Another way that might work (not 100% sure about how this would work though, but I think it should be possible) is to use the Generated Math Programming (GMP) functions in AIMMS to check the coefficients of the generated math program.
I think the first option might be the easiest though.
Ah ok, I have used this before for other purposes, but I was indeed hoping there was an easier way. I may try the GMP approach; unfortunately we would like to see all duplicate columns. One more thing I may check: if there is a way to change the limit of reporting to some very high value.
I did indeed find that you can find more than 3 duplicate rows/columns via the setting in Project Options:
Reply
Sign up
Already have an account? Login Please use your business or academic e-mail address to register