Skip to content

code generates different result using snopt_cwrap.h and f2c interface #19

@hongkai-dai

Description

@hongkai-dai

I have a simple optimization problem, and I implemented one function that uses the f2c.h, and another one using snopt_cwrap.h. They generate different output. The one with f2c is more accurate than the one with snopt_cwrap.h (as can be seen in the "Optimal" column of the print out file). The two print out files are
f2c_out.txt
snopt_cwrap_out.txt

The only difference in the setup part is the "Unbounded objective", and I think the function evaluation part are the same. Should I expect that snopt_cwrap.h and f2c.h produce different result? I am using SNOPT.7.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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