Skip to content

Commit

Permalink
Update tests for GenericModel{T} and GenericVariableRef{T} (#3378)
Browse files Browse the repository at this point in the history
This is another step in the process of adding generic number support to
JuMP. These commits are separate to make them easier to review and to
minimize the risk of introducing breaking changes.
  • Loading branch information
blegat authored and odow committed Jun 2, 2023
1 parent 8c491cb commit 4d59a40
Show file tree
Hide file tree
Showing 9 changed files with 213 additions and 167 deletions.
2 changes: 1 addition & 1 deletion test/Containers/test_tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function JuMP.build_variable(::Function, info::VariableInfo, _::_Mock)
return _MockVariable(ScalarVariable(info))
end

function JuMP.add_variable(model::Model, x::_MockVariable, name::String)
function JuMP.add_variable(model::GenericModel, x::_MockVariable, name::String)
variable = add_variable(model, x.var, name)
return _MockVariableRef(variable)
end
Expand Down
Loading

0 comments on commit 4d59a40

Please sign in to comment.