Skip to content

Error using ipopt #18

@rmndrs89

Description

@rmndrs89

When I was trying to run the basic example from the README.md, I ran into the following error:

>> result = solver.solve(problem);
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Jacobian sparsity: 26254 nonzero elements out of 9156808 (0.287%).
Error using ipopt (line 274)
mexIPOPT do not support gcc < gcc6

Error in IPOPT/solve (line 161)
            [X, info] = ipopt(X0,funcs,options);
                        ^^^^^^^^^^^^^^^^^^^^^^^

I have checked the current version of gcc:

$ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Probably the error comes from the Add-On mexIPOPT, but how would I approach this?

BR

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