Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/moi_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1045,3 +1045,7 @@ end
function MOI.get(model::Optimizer, ::NonLinearKKTJacobianFactorization)
return model.input_cache.factorization
end

function MOI.set(model::Optimizer, attr::MOI.AbstractOptimizerAttribute, value)
return MOI.set(model.optimizer, attr, value)
end
5 changes: 5 additions & 0 deletions test/jump_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ function test_jump_api()
@testset "$(MODEL) with: $(SOLVER), $(ineq ? "ineqs" : "eqs"), $(_min ? "Min" : "Max"), $(flip ? "geq" : "leq") bridge:$with_bridge_type" begin
model = MODEL(SOLVER; with_bridge_type)
set_silent(model)
if SOLVER === Ipopt.Optimizer
# avoiding MOI.TimeLimitSec to cover the RawOptimizerAttribute path
# only tests that MOI doesn't throw an unsupported error (#335)
set_optimizer_attribute(model, "max_wall_time", 600.0)
end

p_val = 4.0
pc_val = 2.0
Expand Down
Loading