Skip to content

Relaxation sine on/off (sign issue) #786

@harshangrjn

Description

@harshangrjn

JuMP.@constraint(m, -y + cos(max_ad/2)*(x) <= z*(sin(max_ad/2) + cos(max_ad/2)*max_ad/2) + (1-z)*(cos(max_ad/2)*M_x))

Documenting the issue here. Though the constraint seems valid, the corrected one will be a bit tighter for the OTS formulation. The correct version of this will be a negative sign next to the first cosine term on the RHS, which will also be consistent with

JuMP.@constraint(m, y >= cos(max_ad/2)*(x + max_ad/2) - sin(max_ad/2))

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