solver = SnoptSolver()
options = SolverOptions()
options.SetOption(solver.id(), "Time limit", 2)
options.SetOption(solver.id(), "Major iterations limit", 200)
options.SetOption(solver.id(), "Minor iterations limit", 100)
result = solver.Solve(prog, None, options)
I've been using the above code to try to limit the Snopt iterations, but it is having no noticeable effect on the runtime. It still takes up to 25 seconds. Am I setting the limit correctly?