Skip to content

Commit

Permalink
Allow for parametric mcp options to be passed on to ParametricMCP
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejcarlo committed Apr 9, 2024
1 parent 8a60d35 commit a189011
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/solver_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ struct Solver{T1,T2}
dimensions::T2
end

function Solver(game::TrajectoryGame, horizon; context_dimension = 0, compute_sensitivities = true)
function Solver(
game::TrajectoryGame,
horizon;
context_dimension = 0,
compute_sensitivities = true,
parametric_mcp_options = (;),
)
dimensions = let
state_blocks =
[state_dim(game.dynamics, player_index) for player_index in 1:num_players(game)]
Expand Down Expand Up @@ -161,6 +167,7 @@ function Solver(game::TrajectoryGame, horizon; context_dimension = 0, compute_se
lower_bounds,
upper_bounds;
compute_sensitivities,
parametric_mcp_options...,
)

Solver(mcp_problem_representation, dimensions)
Expand Down

0 comments on commit a189011

Please sign in to comment.