Skip to content

Segmentation Fault in Example: ode_seair_optimization #1260

@julianlitz

Description

@julianlitz

Bug description

https://github.com/SciCompMod/memilio/blob/main/cpp/examples/ode_seair_optimization.cpp#L625

A segmentation fault occurs in ode_seair_optimization.cpp when the verbosity level (print_level) is not explicitly set via:

app->Options()->SetIntegerValue("print_level", 4);

Better fix:
Remove
app->Options()->SetStringValue("output_file", "ipopt.out");

Version

Windows

To reproduce

./build/bin/ode_seair_optimization

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

No one assigned

    Labels

    class::bugBugs found in the softwaremodel::odeThis issue concerns any kind of ODE-based model.prio::highThe priority of this task is high.

    Type

    No type

    Projects

    Status

    Done (Total)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions