![]() |
SuperSCS
1.3.2
|
#include <math.h>#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Macros | |
| #define | RESTRICT __restrict |
| #define | scs_printf printf |
| #define | scs_free_ free |
| #define | scs_malloc_ malloc |
| #define | scs_calloc_ calloc |
| #define | scs_free(x) if ((x)!=NULL) { scs_free_(x); x = SCS_NULL; } |
| #define | scs_malloc(x) (((x) > 0) ? scs_malloc_(x) : SCS_NULL) |
| #define | scs_calloc(x, y) scs_calloc_(x, y) |
| #define | NAN ((scs_float)0x7ff8000000000000) |
| #define | INFINITY NAN |
| #define | SCS_NULL 0 |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | ABS(x) (((x) < 0) ? -(x) : (x)) |
| #define | SGN(x) (((x) >= 0) ? 1.0 : -1.0) |
| #define | POWF pow |
| #define | SQRTF sqrt |
Typedefs | |
| typedef int | scs_int |
| typedef double | scs_float |
| typedef struct scs_data | ScsData |
| Data of a conic optimization problem. More... | |
| typedef struct scs_settings | ScsSettings |
| Solver settings. More... | |
| typedef struct scs_solution | ScsSolution |
| Primal and dual solution. More... | |
| typedef struct scs_info | ScsInfo |
| Solver statistics and information. More... | |
| typedef struct scs_scaling | ScsScaling |
| Scaling/normalization matrices. More... | |
| typedef struct scs_work | ScsWork |
| SuperSCS Workspace structure. More... | |
| typedef struct scs_cone | ScsCone |
| Cartesian product of cones. More... | |
| typedef struct scs_direction_cache | ScsDirectionCache |
| typedef enum direction_enum | ScsDirectionType |
| Direction computation method (in SuperSCS) More... | |
Enumerations | |
| enum | direction_enum { restarted_broyden = 100, anderson_acceleration = 150, fixed_point_residual = 200, full_broyden = 300 } |
| Direction computation method (in SuperSCS) More... | |
| #define ABS | ( | x | ) | (((x) < 0) ? -(x) : (x)) |
Absolute value of a number
| #define INFINITY NAN |
| #define MAX | ( | a, | |
| b | |||
| ) | (((a) > (b)) ? (a) : (b)) |
Maximum value of two scalars
| #define MIN | ( | a, | |
| b | |||
| ) | (((a) < (b)) ? (a) : (b)) |
Minimum value of two scalars
| #define NAN ((scs_float)0x7ff8000000000000) |
| #define POWF pow |
| #define RESTRICT __restrict |
| #define scs_calloc | ( | x, | |
| y | |||
| ) | scs_calloc_(x, y) |
| #define scs_calloc_ calloc |
| #define scs_free_ free |
| #define scs_malloc | ( | x | ) | (((x) > 0) ? scs_malloc_(x) : SCS_NULL) |
| #define scs_malloc_ malloc |
| #define SCS_NULL 0 |
| #define scs_printf printf |
| #define SGN | ( | x | ) | (((x) >= 0) ? 1.0 : -1.0) |
Sign of a number
| #define SQRTF sqrt |
| typedef double scs_float |
| typedef int scs_int |
Cartesian product of cones.
Data of a conic optimization problem.
Problem dimensions, matrix \(A\), vectors \(b\) and \(c\) and settings.
| typedef struct scs_direction_cache ScsDirectionCache |
A finite-memory cache where \((Y, U)\) are stored.
| typedef enum direction_enum ScsDirectionType |
Direction computation method (in SuperSCS)
| typedef struct scs_scaling ScsScaling |
Scaling/normalization matrices.
| typedef struct scs_settings ScsSettings |
Solver settings.
| typedef struct scs_solution ScsSolution |
Primal and dual solution.
| enum direction_enum |
Direction computation method (in SuperSCS)
See Documentation on directions
| Enumerator | |
|---|---|
| restarted_broyden |
Restarted Broyden method |
| anderson_acceleration |
Anderson's acceleration |
| fixed_point_residual |
Using \(d_k = - R_k\) |
| full_broyden |
Full Broyden method |
1.8.6