Skip to content

Explicit float64 assumption in /Bridges/Constraint/rsoc.jl #876

@JiazhengZhu

Description

@JiazhengZhu

This line in rsoc.jl introduces an explicit float64 assumption:
https://github.com/JuliaOpt/MathOptInterface.jl/blob/345c03b96b53a35f7e583754de81e584c3841bff/src/Bridges/Constraint/rsoc.jl#L28

This will produce MethodError: no method matching operate!(::typeof(/), ::Type{BigFloat}, ::MathOptInterface.ScalarAffineFunction{BigFloat}, ::Float64) at the next line
https://github.com/JuliaOpt/MathOptInterface.jl/blob/345c03b96b53a35f7e583754de81e584c3841bff/src/Bridges/Constraint/rsoc.jl#L29
when using other number types such as BigFloat.

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