Skip to content

Commit 0cc5df4

Browse files
committed
fixing game solver kwarg interface + reducing min stepsize so examples work
1 parent 84869ec commit 0cc5df4

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/game.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,9 @@ function solve(
187187
game::ParametricGame,
188188
θ;
189189
solver_type = InteriorPoint(),
190-
x₀ = zeros(sum(game.dims.x) + sum(game.dims.λ) + game.dims.λ̃),
191-
y₀ = ones(sum(game.dims.μ) + game.dims.μ̃),
192-
tol = 1e-4,
190+
kwargs...
193191
)
194-
(; x, y, s, kkt_error, status) = solve(solver_type, game.mcp, θ; x₀, y₀, tol)
192+
(; x, y, s, kkt_error, status) = solve(solver_type, game.mcp, θ; kwargs...)
195193

196194
# Unpack primals per-player for ease of access later.
197195
end_dims = cumsum(game.dims.x)

src/solver.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function solve(
4646
max_outer_iters = 50,
4747
tightening_rate = 0.1,
4848
loosening_rate = 0.5,
49-
min_stepsize = 1e-2,
49+
min_stepsize = 1e-4,
5050
verbose = false,
5151
linear_solve_algorithm = UMFPACKFactorization(),
5252
)

0 commit comments

Comments
 (0)