Skip to content

Providing custom start value causes double free #187

@lassepe

Description

@lassepe

When I provide a custom start value for some of my variables via JuMP, then the solver crashes with segfault and/or double free errors. I can only reproduce for indicator constraints as reported below:

using Cbc: Cbc
using JuMP: JuMP, @constraint, @objective, @variable

model = JuMP.Model(Cbc.Optimizer)
@variable(model, x[1:2], Bin, start = false)
@variable(model, y[1:2], Bin, start = false)

@constraint(model, x[1] => {y[1] == true})
@constraint(model, x[1] => {y[2] == false})
@constraint(model, x[2] => {y[1] == false})
@constraint(model, x[2] => {y[2] == true})

@objective(model, Max, sum(x))
JuMP.optimize!(model)

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpstreamIssue with upstream library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions