SYMPHONY
SYMPHONY copied to clipboard
manual does not list all possible status codes
I just ran symphony and got a status code of TM_FINISHED
but I don't know what this means. Looking at the header file there are a lot of possible status codes, but only some are documented in the manual:
https://www.coin-or.org/SYMPHONY/man-5.6/node126.html
This is an internal code that should not be returned to the user. Just eyeballing the code now, I don't see any execution path that would allow it. Can you tell me how to replicate? How did you install SYMPHONY, what version are you using, what are you doing with it, etc.
I have 5.6.14 installed and I'm calling it through R. It's returned by the ROI package when I ask for the first feasible solution. Otherwise it seems to work just fine.
library(ROI)
mat <- matrix(c(3, 4, 2,
2, 1, 2,
1, 3, 2), nrow=3, byrow=TRUE)
lp <- OP(objective = c(2, 4, 3),
constraints = L_constraint(L = mat,
dir = c("<=", "<=", "<="),
rhs = c(60, 40, 80)),
maximum = TRUE)
sol <- ROI_solve(lp, solver = "symphony", first_feasible = TRUE)
sol
Returns:
No solution found.
The solver message was: TM_FINISHED
The objective value is: NA
Looks like the folks who built the ROI
package need to update their code mapping. They have return code 232 mapped to TM_FINISHED
instead of TM_FOUND_FIRST_FEASIBLE
:
https://r-forge.r-project.org/scm/viewvc.php/pkg/ROI.plugin.symphony/R/plugin.R?view=markup&revision=204&root=roi
I sent Stefan and email yesterday because the ROI
package is only returning results when SYMPHONY returns code 227. It would be nice if ROI
would return the solution when the solver reaches the gap, time limit, or (as in my case) the first feasible solution. Last time you helped me out you mentioned that you would get in touch with the Rsymphony guys. Maybe you can do that again? And thanks for all your help with SYMPHONY. I appreciate it.