From 64c056f8c22b3b79fdc0862c8938a0f23bd03796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 2 Dec 2020 16:22:55 +0100 Subject: [PATCH] Fixes --- .travis.yml | 9 --------- README.md | 4 ++-- src/variables.jl | 3 ++- 3 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 758893f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: julia -codecov: true -os: - - linux -julia: - - 1.0 - - 1 -notifications: - email: false diff --git a/README.md b/README.md index 38c4115..32cf640 100644 --- a/README.md +++ b/README.md @@ -168,8 +168,8 @@ model = Model(optimizer_constructor) optimize!(model) ``` -[build-img]: https://github.org/blegat/SetProg.jl/workflows/CI/badge.svg?branch=master -[build-url]: https://github.org/blegat/SetProg.jl/actions?query=workflow%3ACI +[build-img]: https://github.com/blegat/SetProg.jl/workflows/CI/badge.svg?branch=master +[build-url]: https://github.com/blegat/SetProg.jl/actions?query=workflow%3ACI [codecov-img]: http://codecov.io/github/blegat/SetProg.jl/coverage.svg?branch=master [codecov-url]: http://codecov.io/github/blegat/SetProg.jl?branch=master diff --git a/src/variables.jl b/src/variables.jl index b7355c4..b024b5a 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -214,7 +214,8 @@ function constrain_convex(model, p, vars) length(X)) Q = @variable(model, [1:MOI.dimension(set)]) @constraint(model, Q in set) - s = SumOfSquares.build_gram_matrix(Q, MonomialBasis(X)) + s = SumOfSquares.build_gram_matrix( + Q, MonomialBasis(X), MOI.PositiveSemidefiniteConeTriangle, Float64) @constraint(model, q == s) return MultivariateMoments.getmat(s) end