Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shtadinada committed Sep 18, 2024
1 parent 3139872 commit fb09c39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ julia> lb_x = [-5 for in in x_base]
julia> ub_x = [5 for in in x_base]

# call the abs-linear form of f
julia> abs_normal_form = abs_linear(x_base,f)
julia> abs_normal_form = AbsSmoothFrankWolfe.abs_linear(x_base,f)

# gradient formula in terms of abs-linearization
julia> alf_a = abs_normal_form.Y
Expand All @@ -74,7 +74,7 @@ julia> z = abs_normal_form.z

julia> s = abs_normal_form.num_switches

julia> sigma_z = signature_vec(s,z)
julia> sigma_z = AbsSmoothFrankWolfe.signature_vec(s,z)

julia> function grad!(storage, x)
c = vcat(alf_a', alf_b'.* sigma_z)
Expand All @@ -92,7 +92,7 @@ julia> @variable(o, lb_x[i] <= x[i=1:n] <= ub_x[i])
julia> dualgap_asfw = Inf

# abs-smooth lmo
julia> lmo_as = AbsSmoothLMO(o, x_base, f, n, s, lb_x, ub_x, dualgap_asfw)
julia> lmo_as = AbsSmoothFrankWolfe.AbsSmoothLMO(o, x_base, f, n, s, lb_x, ub_x, dualgap_asfw)

# define termination criteria using Frank-Wolfe 'callback' function
julia> function make_termination_callback(state)
Expand Down

0 comments on commit fb09c39

Please sign in to comment.