Skip to content

Commit

Permalink
changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandopalafox authored Oct 23, 2023
1 parent 7b919af commit ff21811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/tower_defense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end
"""Solve for q (stage 1)
Returns dj/dq: optimal value of q"""
function djdqaa(iter_limit=50, target_error=.00001, α=1, pₖ = [1/3; 1/3; 1/3], q=[1/2; 1/2; 1/2])
function solve_q(iter_limit=50, target_error=.00001, α=1, pₖ = [1/3; 1/3; 1/3], q=[1/2; 1/2; 1/2])
# iter_limit = 50
cur_iter = 0

Expand Down Expand Up @@ -204,4 +204,4 @@ function dzdq(q, verbose, z1, pₖ)
verbose=false,
return_primals=false
).variables[1:24], q)[1]
end
end

0 comments on commit ff21811

Please sign in to comment.