Skip to content

Commit

Permalink
[AUTO] JuliaFormatter.jl run (#230)
Browse files Browse the repository at this point in the history
Co-authored-by: PierreMartinon <[email protected]>
  • Loading branch information
github-actions[bot] and PierreMartinon authored Sep 1, 2024
1 parent fb16947 commit 4fad63b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions benchmark/prof.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ if precompile
println("Precompilation")
direct_solve(ocp, grid_size = grid_size, display = false, max_iter = 2)
CTDirect.DOCP_objective(CTDirect.DOCP_initial_guess(docp), docp)
CTDirect.DOCP_constraints!(zeros(docp.dim_NLP_constraints), CTDirect.DOCP_initial_guess(docp), docp)
CTDirect.DOCP_constraints!(
zeros(docp.dim_NLP_constraints),
CTDirect.DOCP_initial_guess(docp),
docp,
)
end

# full solve
if test_solve
println("Timed solve")
@timev sol = direct_solve(ocp, grid_size = grid_size, display=false)
@btime sol = direct_solve(ocp, grid_size = grid_size, display=false)
@timev sol = direct_solve(ocp, grid_size = grid_size, display = false)
@btime sol = direct_solve(ocp, grid_size = grid_size, display = false)
end

if test_code_warntype
Expand Down

0 comments on commit 4fad63b

Please sign in to comment.