Open giadasp opened 3 years ago
I saw that (sometimes) the solver printed its log in the R console and it said that the model was infeasible. That's why the solution was not an integer. Thus, it seems that the status that rcbc gives is not equal to the status of the cbc model: infeasible!=model has solution. So I close the issue but I think that you should make the package print the right status of the model.
Thanks a lot for the issue. Can you provide a reproducible example that highlights your problem?
Sorry but I cannot reproduce it since I'm not working on that project anymore :(
Dear developers, I tried to use your package for a personal project I'm working on. I specified the model as follows:
The solver says that it found an optimal solution, but when I try to retrieve the solution I get non-integer values for all the variables. For example, I have negative values and values bigger than one with some decimals. I tried to use
rep.int()
instead ofrep()
because in the default values for the arguments you used it. Can you explain why this happens? Should I take only the absolute values of the results and round them to 0 or 1? I used cbc with other interfaces before and I didn't have this problem.