Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling: s/Hermmitian/Hermitian/g #3767

Merged
merged 1 commit into from
Jun 4, 2024
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
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
Loading