|
QPALM
A proximal augmented Lagrangian method for QPs.
|
Utility functions. More...
Go to the source code of this file.
Functions | |
| QPALMSettings * | copy_settings (const QPALMSettings *settings) |
| Copy settings creating a new settings structure. More... | |
| void | c_strcpy (char dest[], const char source[]) |
| Custom string copy to avoid string.h library. More... | |
| void | update_status (QPALMInfo *info, c_int status_val) |
| Update solver status (value and string). More... | |
| void | print_header (void) |
| Print the header with QPALM version number and fields. More... | |
| void | print_iteration (c_int iter, QPALMWorkspace *work) |
| Print information about the current iteration. More... | |
| void | print_final_message (QPALMWorkspace *work) |
| Print final message as a box with info. More... | |
| void | qpalm_tic (QPALMTimer *t) |
| Start timer. More... | |
| c_float | qpalm_toc (QPALMTimer *t) |
| Report time in seconds since last call to qpalm_tic. More... | |
Utility functions.
This file contains some utility functions, to copy the settings, to update the solver status, to print information and to time the algorithm.
| void c_strcpy | ( | char | dest[], |
| const char | source[] | ||
| ) |
Custom string copy to avoid string.h library.
| dest | Destination string |
| source | Source string |
| QPALMSettings* copy_settings | ( | const QPALMSettings * | settings | ) |
Copy settings creating a new settings structure.
| settings | Settings to be copied |
| void print_final_message | ( | QPALMWorkspace * | work | ) |
Print final message as a box with info.
(Final residuals, objective function, runtime)
| work | Workspace |
| void print_header | ( | void | ) |
Print the header with QPALM version number and fields.
| void print_iteration | ( | c_int | iter, |
| QPALMWorkspace * | work | ||
| ) |
Print information about the current iteration.
(Residuals, stepsize and objective value)
| iter | The current iteration number |
| work | Workspace |
| void qpalm_tic | ( | QPALMTimer * | t | ) |
Start timer.
| t | Timer object |
| c_float qpalm_toc | ( | QPALMTimer * | t | ) |
Report time in seconds since last call to qpalm_tic.
| t | Timer object |
1.8.15