Skip to content

Flakely incorrect result with ConstraintPrimal #336

@odow

Description

@odow

See

# See KNITRO.jl#333
#
# function MOI.get(
# model::Optimizer,
# attr::MOI.ConstraintPrimal,
# ci::MOI.ConstraintIndex{S,T},
# ) where {
# S<:Union{MOI.ScalarAffineFunction{Float64},MOI.ScalarQuadraticFunction{Float64}},
# T<:Union{
# MOI.EqualTo{Float64},
# MOI.GreaterThan{Float64},
# MOI.LessThan{Float64},
# MOI.Interval{Float64},
# },
# }
# MOI.check_result_index_bounds(model, attr)
# MOI.throw_if_not_valid(model, ci)
# indexCon = model.constraint_mapping[ci]
# p = Ref{Cdouble}(NaN)
# KNITRO.@_checked KNITRO.KN_get_con_value(model.inner, indexCon, p)
# return p[]
# end

Enabling this function makes Linux and Windows sporadically fail tests.

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