Skip to content

Update ipopt.jl - To free ipopt.out file#22

Open
pollinico wants to merge 1 commit into
byuflowlab:masterfrom
pollinico:patch-1
Open

Update ipopt.jl - To free ipopt.out file#22
pollinico wants to merge 1 commit into
byuflowlab:masterfrom
pollinico:patch-1

Conversation

@pollinico

Copy link
Copy Markdown

Hi, with this change it is possible to run multiple sequential times Ipopt from SNOW.jl, without encountering the error:

julia> rm("ipopt.out")
ERROR: IOError: unlink("ipopt.out"): resource busy or locked (EBUSY)

I have tested it and seem to work well.

Hi, with this change it is possible to run multiple sequential times Ipopt  from SNOW.jl, without encountering the error: 
```julia
julia> rm("ipopt.out")
ERROR: IOError: unlink("ipopt.out"): resource busy or locked (EBUSY)
```
I have tested it and seem to work well.
Comment thread src/ipopt.jl
# now it's safe to free the C-side memory
finalize(prob)

return prob.x, prob.obj_val, ApplicationReturnStatus[status], nothing

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return result_x, result_f, result_status, nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant