Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shtadinada committed Nov 14, 2024
1 parent 95b5e78 commit 2b03681
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ lb_x = [-5 for in in x_base]
ub_x = [5 for in in x_base]

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

alf_a = abs_normal_form.Y
alf_b = abs_normal_form.J
z = abs_normal_form.z
s = abs_normal_form.num_switches

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

# gradient formula in terms of abs-linearization
function grad!(storage, x)
Expand All @@ -78,7 +78,7 @@ MOI.set(o, MOI.Silent(), true)
dualgap_asfw = Inf

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

# define termination criteria

Expand All @@ -94,7 +94,7 @@ end
callback = make_termination_callback(FrankWolfe.CallbackState)

# call abs-smooth-frank-wolfe
x, v, primal, dual_gap, traj_data = as_frank_wolfe(
x, v, primal, dual_gap, traj_data = AbsSmoothFrankWolfe.as_frank_wolfe(
f,
grad!,
lmo_as,
Expand Down

0 comments on commit 2b03681

Please sign in to comment.