From 58138394a172e741e1a829835ba8bb170ec46f4a Mon Sep 17 00:00:00 2001 From: odow Date: Tue, 4 Jun 2024 13:25:28 +1200 Subject: [PATCH] Fix spelling: s/Hermmitian/Hermitian/g --- docs/src/manual/constraints.md | 2 +- src/sd.jl | 4 ++-- test/test_macros.jl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/manual/constraints.md b/docs/src/manual/constraints.md index 6f5eeab115b..c2a4b29cac3 100644 --- a/docs/src/manual/constraints.md +++ b/docs/src/manual/constraints.md @@ -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: [...] ``` diff --git a/src/sd.jl b/src/sd.jl index e61f111391f..42ca64e961b 100644 --- a/src/sd.jl +++ b/src/sd.jl @@ -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 @@ -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 diff --git a/test/test_macros.jl b/test/test_macros.jl index d1a7f8dd9e3..6b559667f22 100644 --- a/test/test_macros.jl +++ b/test/test_macros.jl @@ -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), ) @@ -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), )