YosefLab / Cassiopeia

A Package for Cas9-Enabled Single Cell Lineage Tracing Tree Reconstruction
https://cassiopeia-lineage.readthedocs.io/en/latest/
MIT License
77 stars 24 forks source link

Check whether the ILP Solver is using Gurobi #218

Closed Marius1311 closed 1 year ago

Marius1311 commented 1 year ago

Hi there, quick question, how can I check whether the ILP solver is correctly using Gurobi? Or is this a stupid question, and the solver is always using gurobi under the hood, so as long as I get no error, things are fine?

I got a bit confused when looking at the API because I realized that the ILPSolver has methods generate_steiner_model and solve_steiner_instance, which explicitly mention Gurobi in their description, while the solve method does not.

mattjones315 commented 1 year ago

Hi @Marius1311,

Thanks for the question! There is no "backup" optimizer, so if the ILPSolver is running correctly then Gurobi is being used.

That's a good point on documentation - we will clarify this in the general solve docstring.

Let me know if you have other questions relating to whether or not Gurobi is installed correctly. If so, feel free to reopen this issue and we can continue the discussion.

-Matt

Marius1311 commented 1 year ago

Hi @mattjones315, thanks for your reply! I managed to figure out that Gurobi is installed correctly and in fact called correctly by the solver. I checked the logs and I could see the the text printed by Gurobi.

I have some other issues now with the Hybrid solver, but I'll open another issue for that as it's unrelated. Thank you for your help!