Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 2, 2020
1 parent 23a06cf commit 64c056f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit 64c056f

@blegat
Copy link
Owner Author

@blegat blegat commented on 64c056f Dec 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/25715

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" 64c056f8c22b3b79fdc0862c8938a0f23bd03796
git push origin v0.1.4

Please sign in to comment.