alpaqa
1.0.0a16
Nonconvex constrained optimization
|
#include <alpaqa/problem/box-constr-problem.hpp>
Implements common problem functions for minimization problems with box constraints.
Meant to be used as a base class for custom problem implementations. Supports optional
Definition at line 16 of file box-constr-problem.hpp.
Public Types | |
using | Box = alpaqa::Box< config_t > |
Static Public Member Functions | |
static real_t | eval_proj_grad_step_box (const Box &C, real_t γ, crvec x, crvec grad_ψ, rvec x̂, rvec p) |
Projected gradient step for rectangular box C. | |
static void | eval_prox_grad_step_box_l1_impl (const Box &C, const auto &λ, real_t γ, crvec x, crvec grad_ψ, rvec x̂, rvec p) |
Proximal gradient step for rectangular box C with ℓ₁-regularization. | |
static real_t | eval_prox_grad_step_box_l1 (const Box &C, const auto &λ, real_t γ, crvec x, crvec grad_ψ, rvec x̂, rvec p) |
Proximal gradient step for rectangular box C with ℓ₁-regularization. | |
static real_t | eval_prox_grad_step_box_l1_scal (const Box &C, real_t λ, real_t γ, crvec x, crvec grad_ψ, rvec x̂, rvec p) |
Proximal gradient step for rectangular box C with ℓ₁-regularization. | |
static void | eval_proj_multipliers_box (const Box &D, rvec y, real_t M, index_t penalty_alm_split) |
Public Attributes | |
length_t | n |
Number of decision variables, dimension of x. | |
length_t | m |
Number of constraints, dimension of g(x) and z. | |
Box | C {this->n} |
Constraints of the decision variables, | |
Box | D {this->m} |
Other constraints, | |
vec | l1_reg {} |
index_t | penalty_alm_split = 0 |
Components of the constraint function with indices below this number are handled using a quadratic penalty method rather than using an augmented Lagrangian method. | |
using Box = alpaqa::Box<config_t> |
Definition at line 19 of file box-constr-problem.hpp.
|
inline |
Create a problem with inactive boxes
n | Number of decision variables |
m | Number of constraints |
Definition at line 29 of file box-constr-problem.hpp.
|
inline |
Create a problem with inactive boxes
dims | Number of variables and number of constraints. |
Definition at line 34 of file box-constr-problem.hpp.
|
inline |
Definition at line 37 of file box-constr-problem.hpp.
|
default |
|
defaultnoexcept |
Change the dimensions of the problem (number of decision variables and number of constaints).
Destructive: resizes and/or resets the members C, D, l1_reg and penalty_alm_split.
n | Number of decision variables |
m | Number of constraints |
Definition at line 45 of file box-constr-problem.hpp.
|
default |
|
defaultnoexcept |
|
inline |
Number of decision variables, n.
Definition at line 81 of file box-constr-problem.hpp.
|
inline |
Number of constraints, m.
Definition at line 83 of file box-constr-problem.hpp.
|
inlinestatic |
Projected gradient step for rectangular box C.
Definition at line 90 of file box-constr-problem.hpp.
|
inlinestatic |
Proximal gradient step for rectangular box C with ℓ₁-regularization.
Definition at line 113 of file box-constr-problem.hpp.
|
inlinestatic |
Proximal gradient step for rectangular box C with ℓ₁-regularization.
Definition at line 122 of file box-constr-problem.hpp.
|
inlinestatic |
Proximal gradient step for rectangular box C with ℓ₁-regularization.
Definition at line 129 of file box-constr-problem.hpp.
|
inline |
Definition at line 138 of file box-constr-problem.hpp.
Definition at line 148 of file box-constr-problem.hpp.
Definition at line 177 of file box-constr-problem.hpp.
Definition at line 179 of file box-constr-problem.hpp.
|
inline |
Only supported if the ℓ₁-regularization term is zero.
Definition at line 183 of file box-constr-problem.hpp.
|
inline |
Definition at line 189 of file box-constr-problem.hpp.
|
inline |
Definition at line 226 of file box-constr-problem.hpp.
length_t n |
Number of decision variables, dimension of x.
Definition at line 22 of file box-constr-problem.hpp.
length_t m |
Number of constraints, dimension of g(x) and z.
Definition at line 24 of file box-constr-problem.hpp.
Constraints of the decision variables,
Definition at line 65 of file box-constr-problem.hpp.
Other constraints,
Definition at line 67 of file box-constr-problem.hpp.
vec l1_reg {} |
Possible dimensions are:
Definition at line 72 of file box-constr-problem.hpp.
index_t penalty_alm_split = 0 |
Components of the constraint function with indices below this number are handled using a quadratic penalty method rather than using an augmented Lagrangian method.
Specifically, the Lagrange multipliers for these components (which determine the shifts in ALM) are kept at zero.
Definition at line 78 of file box-constr-problem.hpp.