title: How to interrupt a Gurobi model optimization in c#?
body: <p>I've seen one can set a time limit, node limit, etc. to stop a Gurobi model optmimization but those are parameters you can only set before running the optimization. </p>
  
  <p>I want to know how to interrupt programatically a optimization without stopping the program calling the model (I'm programming in c#) because I want to try using the suboptimal variable values.</p>
  
  <p>If it's of any use I'm running the model in separate threads than the program GUI.</p>