Skip to content

Optimal solution is third when there are starting values and conic constraints #66

@blegat

Description

@blegat

When there are both starting values and conic constraints, the optimal value is the third solution and the first solution is just the starting value.

using JuMP
using MosekTools: Mosek

solver = Mosek.Optimizer

model = Model(solver)
@variable(model, x, start=2)
@constraint(model, [x, 1]  SecondOrderCone())
@objective(model, Min, 2x)
optimize!(model)
@show termination_status(model)
@show primal_status(model)
@show primal_status(model, result=2)
@show primal_status(model, result=3)
@show value(x)
@show value(x, result=2)
@show value(x, result=3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions