Skip to content

Commit

Permalink
Fix spelling: s/Hermmitian/Hermitian/g (#3767)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jun 4, 2024
1 parent 56b186f commit 886a652
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/manual/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ julia> @variable(model, X[1:2, 1:2])
X[2,1] X[2,2]
julia> @constraint(model, X >= 0)
ERROR: At none:1: `@constraint(model, X >= 0)`: Unsupported matrix in vector-valued set. Did you mean to use the broadcasting syntax `.>=` instead? Alternatively, perhaps you are missing a set argument like `@constraint(model, X >= 0, PSDCone())` or `@constraint(model, X >= 0, HermmitianPSDCone())`.
ERROR: At none:1: `@constraint(model, X >= 0)`: Unsupported matrix in vector-valued set. Did you mean to use the broadcasting syntax `.>=` instead? Alternatively, perhaps you are missing a set argument like `@constraint(model, X >= 0, PSDCone())` or `@constraint(model, X >= 0, HermitianPSDCone())`.
Stacktrace:
[...]
```
Expand Down
4 changes: 2 additions & 2 deletions src/sd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ function build_constraint(error_fn::Function, ::AbstractMatrix, ::Nonnegatives)
"Unsupported matrix in vector-valued set. Did you mean to use the " *
"broadcasting syntax `.>=` instead? Alternatively, perhaps you are " *
"missing a set argument like `@constraint(model, X >= 0, PSDCone())` " *
"or `@constraint(model, X >= 0, HermmitianPSDCone())`.",
"or `@constraint(model, X >= 0, HermitianPSDCone())`.",
)
end

Expand All @@ -586,7 +586,7 @@ function build_constraint(error_fn::Function, ::AbstractMatrix, ::Nonpositives)
"Unsupported matrix in vector-valued set. Did you mean to use the " *
"broadcasting syntax `.<=` instead? Alternatively, perhaps you are " *
"missing a set argument like `@constraint(model, X <= 0, PSDCone())` " *
"or `@constraint(model, X <= 0, HermmitianPSDCone())`.",
"or `@constraint(model, X <= 0, HermitianPSDCone())`.",
)
end

Expand Down
4 changes: 2 additions & 2 deletions test/test_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ function test_matrix_in_vector_set()
"Unsupported matrix in vector-valued set. Did you mean to use the " *
"broadcasting syntax `.>=` instead? Alternatively, perhaps you are " *
"missing a set argument like `@constraint(model, X >= 0, PSDCone())` " *
"or `@constraint(model, X >= 0, HermmitianPSDCone())`.",
"or `@constraint(model, X >= 0, HermitianPSDCone())`.",
),
@constraint(model, X >= A),
)
Expand All @@ -1973,7 +1973,7 @@ function test_matrix_in_vector_set()
"Unsupported matrix in vector-valued set. Did you mean to use the " *
"broadcasting syntax `.<=` instead? Alternatively, perhaps you are " *
"missing a set argument like `@constraint(model, X <= 0, PSDCone())` " *
"or `@constraint(model, X <= 0, HermmitianPSDCone())`.",
"or `@constraint(model, X <= 0, HermitianPSDCone())`.",
),
@constraint(model, X <= A),
)
Expand Down

0 comments on commit 886a652

Please sign in to comment.