Skip to content

Commit f80ae73

Browse files
committed
Fix format
1 parent 6cf200b commit f80ae73

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/Certificate/Sparsity/preorder.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ function SumOfSquares.Certificate.preprocessed_domain(
3131
domain::SemialgebraicSets.BasicSemialgebraicSet,
3232
p,
3333
)
34-
basis, Preorder_bases =
35-
sparsity(MB.SubBasis{MB.Monomial}(MP.monomials(p)), domain, certificate.sparsity, certificate.certificate)
34+
basis, Preorder_bases = sparsity(
35+
MB.SubBasis{MB.Monomial}(MP.monomials(p)),
36+
domain,
37+
certificate.sparsity,
38+
certificate.certificate,
39+
)
3640
return Domain(
3741
domain,
3842
SumOfSquares.Certificate.preprocessed_domain(

test/Tests/lyapunov_switched_system.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ function lyapunov_switched_system_test(
5050
# and sum it with a strictly positive `q`.
5151
# Since the problem is homogeneous (i.e. given any `λ > 0`, `p` is
5252
# feasible iff `λp` is feasible), this is wlog.
53-
p0 = @variable(model, variable_type = SOSPoly(MB.SubBasis{basis}(monomials(x, degree))))
53+
p0 = @variable(
54+
model,
55+
variable_type = SOSPoly(MB.SubBasis{basis}(monomials(x, degree)))
56+
)
5457
q = GramMatrix(SOSDecomposition(x .^ degree))
5558

5659
# Keep `p` in a `GramMatrix` form while `q + p0` would transform it to

0 commit comments

Comments
 (0)