Skip to content

Commit

Permalink
Merge pull request #17 from forrestlaine/feature/interrupt
Browse files Browse the repository at this point in the history
Forward user interrupts
  • Loading branch information
forrestlaine committed Feb 9, 2024
2 parents 297d796 + f88c538 commit 2fc3b0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/nash.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ function compute_equilibrium(cost_tensors;
convergence_tolerance,
silent)

if status === PATHSolver.MCP_UserInterrupt
throw(InterruptException())
end

x = [vars[primal_indices[n, 1]:primal_indices[n, 2]] for n 1:N]
λ = vars[dual_inds]

Expand Down

0 comments on commit 2fc3b0f

Please sign in to comment.