Skip to content

Commit

Permalink
Switch to Clarabel
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Sep 10, 2023
1 parent 371122d commit 59de2e6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ using DynamicPolynomials
@ncpolyvar x y
p = (x + im * y) * (x - im * y)

import CSDP
model = Model(CSDP.Optimizer)
# We first need to pick an SDP solver, see [here](https://jump.dev/JuMP.jl/v1.8/installation/#Supported-solvers) for a list of the available choices.

import Clarabel
model = Model(Clarabel.Optimizer)
cone = NonnegPolyInnerCone{MOI.HermitianPositiveSemidefiniteConeTriangle}()
con_ref = @constraint(model, p in cone)
optimize!(model)
Expand Down

0 comments on commit 59de2e6

Please sign in to comment.