Skip to content

Add test for conic problem with constraints but no variables #1741

@odow

Description

@odow

See this issue in ECOS: jump-dev/ECOS.jl#132 (comment)

We should see what happens for models of the form:

model = MOI.Utilities.Model{Float64}()
f = MOI.VectorAffineFunction(MOI.VectorAffineTerm{Float64}[], [1.0, 0.5, 0.5])
MOI.add_constraint(model, f, MOI.SecondOrderCone(3))

They might solve, or they might error, but they shouldn't segfault.

Test for MOI.OPTIMAL or MOI.INVALID_MODEL as the termination status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions