QPALM
A proximal augmented Lagrangian method for QPs.
All Data Structures Files Functions Variables Typedefs Macros Pages
termination.h
Go to the documentation of this file.
1 
12 #ifndef TERMINATION_H
13 # define TERMINATION_H
14 
15 # ifdef __cplusplus
16 extern "C" {
17 # endif // ifdef __cplusplus
18 
19 #include "types.h"
20 
36 
43 
53 
70 
84 
101 
109 
134 
135 
179 
192 
193 
204 void store_solution(QPALMWorkspace *work);
205 
206 
207 
208 # ifdef __cplusplus
209 }
210 # endif // ifdef __cplusplus
211 
212 #endif // ifndef TERMINATION_H
c_int check_termination(QPALMWorkspace *work)
Checks whether the problem is solved or infeasible and updates the status accordingly.
Definition: termination.c:19
Internal data structures used in QPALM.
void calculate_dual_tolerances(QPALMWorkspace *work)
Calculates the dual tolerance for the problem and current subproblem and stores them in work->eps_dua...
Definition: termination.c:108
void calculate_primal_tolerance(QPALMWorkspace *work)
Calculates the primal tolerance and stores it in work->eps_pri.
Definition: termination.c:92
c_int is_solved(QPALMWorkspace *work)
Check whether the primal and dual residual norms are smaller than the primal and dual tolerances.
Definition: termination.c:131
QPALM Workspace.
Definition: types.h:197
void calculate_dual_residuals(QPALMWorkspace *work)
Calculates the infinity norm of the dual residual and the residual of the subproblem and stores them ...
Definition: termination.c:61
c_int is_primal_infeasible(QPALMWorkspace *work)
Check whether the problem is primal infeasible.
Definition: termination.c:136
c_int is_dual_infeasible(QPALMWorkspace *work)
Check whether the problem is dual infeasible.
Definition: termination.c:184
void calculate_residuals_and_tolerances(QPALMWorkspace *work)
Calls the primal and dual residual and tolerance routines.
Definition: termination.c:44
c_int check_subproblem_termination(QPALMWorkspace *work)
Check whether the subproblem is solved.
Definition: termination.c:254
ladel_int c_int
type for integer numbers
Definition: global_opts.h:22
void calculate_primal_residual(QPALMWorkspace *work)
Calculates the infinity norm of the primal residual and stores it in work->info->pri_res_norm.
Definition: termination.c:51
void store_solution(QPALMWorkspace *work)
Helper function to store the (unscaled) solution in the solution struct.
Definition: termination.c:242