Skip to content

Commit 7524287

Browse files
committed
Resolve an Aqua error and another set of warnings.
1 parent ff2418e commit 7524287

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Manopt.jl

-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ export get_constraints,
386386
get_grad_equality_constraint!,
387387
get_grad_equality_constraints,
388388
get_grad_equality_constraints!
389-
export AbstractConstraintType, FunctionConstraint, VectorConstraint
390389
# Subproblem cost/grad
391390
export AugmentedLagrangianCost, AugmentedLagrangianGrad, ExactPenaltyCost, ExactPenaltyGrad
392391
export ProximalDCCost, ProximalDCGrad, LinearizedDCCost, LinearizedDCGrad

src/solvers/exact_penalty_method.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ function step_solver!(
427427
epms.p = get_solver_result(solve!(epms.sub_problem, epms.sub_state))
428428

429429
# get new evaluation of penalty
430-
cost_ineq = get_inequality_constraints(amp, epms.p)
431-
cost_eq = get_equality_constraints(amp, epms.p)
430+
cost_ineq = get_inequality_constraint(amp, epms.p, :)
431+
cost_eq = get_equality_constraint(amp, epms.p, :)
432432
max_violation = max(max(maximum(cost_ineq; init=0), 0), maximum(abs.(cost_eq); init=0))
433433
# update ρ if necessary
434434
(max_violation > epms.u) && (epms.ρ = epms.ρ / epms.θ_ρ)

0 commit comments

Comments
 (0)