Skip to content

Commit

Permalink
Merge 8776f30 into 8319f09
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Apr 15, 2018
2 parents 8319f09 + 8776f30 commit 4de638b
Show file tree
Hide file tree
Showing 8 changed files with 810 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ addons:
- gfortran
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone("https://github.com/JuliaOpt/MathOptInterface.jl.git")'
- julia -e 'Pkg.clone("https://github.com/JuliaOpt/MathOptInterfaceBridges.jl.git")'
- julia -e 'Pkg.clone(pwd()); Pkg.build("Ipopt")'
- julia -e 'Pkg.test("Ipopt", coverage=true)'
after_success:
Expand Down
4 changes: 4 additions & 0 deletions deps/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
downloads
src
usr
deps.jl
9 changes: 5 additions & 4 deletions src/Ipopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ mutable struct IpoptProblem
ref::Ptr{Void}, n, m,
eval_f, eval_g, eval_grad_f, eval_jac_g, eval_h)
prob = new(ref, n, m, zeros(Float64, n), zeros(Float64, m), zeros(Float64,m),
zeros(Float64,n), zeros(Float64,n), 0.0, 0,
eval_f, eval_g, eval_grad_f, eval_jac_g, eval_h, nothing,
:Min)
zeros(Float64,n), zeros(Float64,n), 0.0, 0,
eval_f, eval_g, eval_grad_f, eval_jac_g, eval_h, nothing,
:Min)
# Free the internal IpoptProblem structure when
# the Julia IpoptProblem instance goes out of scope
finalizer(prob, freeProblem)
Expand Down Expand Up @@ -324,6 +324,7 @@ function solveProblem(prob::IpoptProblem)
return Int(ret)
end

include("IpoptSolverInterface.jl")
include("mathprogbase_wrapper.jl")
include("mathoptinterface_wrapper.jl")

end # module

0 comments on commit 4de638b

Please sign in to comment.