Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jul 14, 2024
1 parent 947bf4b commit 07a5779
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ primal_feas::Vector{Float64} = []
dual_feas::Vector{Float64} = []


cases::Vector{Tuple{Int,Int,Int}} = [(0,3,10)]
cases::Vector{Tuple{Int,Int,Int}} = [(0,3,10),(3,2,1000),(5,0,10)]
# cases::Vector{Tuple{Int,Int,Int}} = [(0,3,10),(2,2,1000),(1,1,1000),(0,0,1000)]
for (lin_solver_id,print_level, max_iters) in cases
nlp_interface = MadnlpCInterface(
Expand Down
8 changes: 5 additions & 3 deletions src/MadNLP_C.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,16 +301,18 @@ Base.@ccallable function madnlp_c_create(nlp_interface::Ptr{MadnlpCInterface})::
solver = MadnlpCSolver()
solver.nlp_interface = unsafe_load(nlp_interface)
solver.lin_solver_id = 0
solver.max_iters = 1000
solver.max_iters = 3000
solver.print_level = 5
solver.minimize = true

interf = solver.nlp_interface

solver.in = MadnlpCNumericIn{Vector{Float64}}()

# @info "nw" interf.nw
# @info "nc" interf.nc
@info "interf" interf

@info "nw" interf.nw
@info "nc" interf.nc

solver.in.x0 = fill(0.0, interf.nw)
solver.in.l0 = fill(0.0, interf.nc)
Expand Down

0 comments on commit 07a5779

Please sign in to comment.