Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MOI_wrapper/sets/NormNuclearCone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ function MOI.set(
start::Union{Nothing,AbstractVector{T}},
) where {T}
g = _transpose(bridge.set, start, true)
MOI.set(model, attr, bridge.constraint, start)
MOI.set(model, attr, bridge.constraint, g)
return
end
11 changes: 11 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,17 @@ function test_modify_constants()
return
end

function test_norm_nuclear_cone_constraint_primal_start()
model = MOI.instantiate(SCS.Optimizer; with_bridge_type = Float64)
x = MOI.add_variables(model, 7)
f = MOI.VectorOfVariables(x)
ci = MOI.add_constraint(model, f, MOI.NormNuclearCone(2, 3))
start = collect(1.0:7.0)
MOI.set(model, MOI.ConstraintPrimalStart(), ci, start)
@test isapprox(MOI.get(model, MOI.ConstraintPrimalStart(), ci), start)
return
end

end # module

TestSCS.runtests()
Loading