How to use callback functions of Gurobi in Drake

Viewed 120

I am solving hybrid control problems using Drake with Gurobi solver. I want to get the final root relaxed solution (after presolve and auto cut generation). I tried writing log files, but the log file doesn't print out every iteration and I couldn't get the best relaxed objective bound after presolve and cut generation.

Get root node relaxation solution This post shows how to retrieve the value I want, but I am not sure how to change the code to use it in Drake.

Thanks in advance.

1 Answers
Related