Skip to content

Potential numerical and semantic issues with log-based primal-dual residual gap #60

@LucasBoTang

Description

@LucasBoTang

Hi all,

I noticed the following line in solver.cu:

    double primal_dual_residual_gap = abs(
        log10(state->relative_dual_residual /
              state->relative_primal_residual));

Since log10(...) returns a double, I’m wondering why abs is used here instead of fabs. Is this intentional, or would fabs be safer?

Best,
Bo

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