Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 26, 2024
1 parent cfe0434 commit 2f4e05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,7 @@ julia> normalized_coefficient(con, x[1], x[2])
3.0
julia> @constraint(model, con_vec, x.^2 <= [1, 2])
con_vec : [x[1]² - 1, x[2]² - 2] ∈ MathOptInterface.Nonpositives(2)
con_vec : [x[1]² - 1, x[2]² - 2] ∈ Nonpositives()
julia> normalized_coefficient(con_vec, x[1], x[1])
1-element Vector{Tuple{Int64, Float64}}:
Expand Down
2 changes: 1 addition & 1 deletion test/test_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ end

function test_matrix_in_vector_set()
model = Model()
@variable(model, X[1:2, 1:2], container = DenseAxisArray)
@variable(model, X[2:3, 2:3])
A = Containers.DenseAxisArray([1 2; 3 4], 2:3, 2:3)
@test_throws_runtime(
ErrorException(
Expand Down

0 comments on commit 2f4e05c

Please sign in to comment.