Skip to content

Issue parsing Ipopt_jll string option when there is blank space in path #10540

@KSepetanc

Description

@KSepetanc

hsllib attribute of Ipopt_jll does not load correctly when there is blank space in path. For example, if folder is named "test 2" if fails with an error, but if folder is named "test2" then it works as expected. Sample of a call is illustrated below.

set_optimizer(pol, () -> AmplNLWriter.Optimizer(Ipopt_jll.amplexe))
set_attribute(pol, "linear_solver", "ma27")
set_attribute(pol, "hsllib", joinpath(@__DIR__,"../HSL/libhsl.so"))
optimize!(pol)

Log:

Ipopt 3.14.17: hsllib=/home/karlo/Desktop/test
Unknown keyword "2/sa/../HSL/libhsl.so"
linear_solver=ma27

Run using Julia 1.11.3 and Linux.

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