Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Dec 20, 2024
1 parent 19d7678 commit 7915b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials/conic/ellipse_fitting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Plots.plot!(
function create_ellipse_model::Array{Tuple{Int,Int},1}, ϵ = 1e-5)
N = length(Ξ)
model = Model(SCS.Optimizer)
set_silent(model)
# set_silent(model)
@variable(model, Q[1:2, 1:2], PSD)
@variable(model, d[1:2])
@variable(model, e)
Expand Down Expand Up @@ -369,7 +369,7 @@ for (i, cluster) in enumerate(clusters)
)
@objective(model, Min, ζ)
optimize!(model)
@assert is_solved_and_feasible(model)
@assert is_solved_and_feasible(model; allow_almost = true)
Q, d, e = value.(model[:Q]), value.(model[:d]), value.(model[:e])
push!(ellipses_C2, Dict(:Q => Q, :d => d, :e => e))
end
Expand Down

0 comments on commit 7915b6e

Please sign in to comment.