SuperSCS  1.3.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
directions.h
Go to the documentation of this file.
1 /*
2  * The MIT License (MIT)
3  *
4  * Copyright (c) 2017 Pantelis Sopasakis (https://alphaville.github.io),
5  * Krina Menounou (https://www.linkedin.com/in/krinamenounou),
6  * Panagiotis Patrinos (http://homes.esat.kuleuven.be/~ppatrino)
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in all
16  * copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24  * SOFTWARE.
25  *
26  */
27 #ifndef SCS_DIRECTIONS_H
28 #define SCS_DIRECTIONS_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include "scs.h"
35 
39 #define SCS_DIRECTION_CACHE_INCREMENT 101
40 
43 #define SCS_DIRECTION_CACHE_RESET 100
44 
47 #define SCS_DIRECTION_ERROR -1
48 
53 #define SCS_DIRECTION_SUCCESS 0
54 
65 
77 
87 
101 
105  void scs_free_full_broyden(void);
106 
118 
119 
120 #ifdef __cplusplus
121 }
122 #endif
123 
124 #endif /* DIRECTIONS_H */
125 
scs_int scs_reset_direction_cache(ScsDirectionCache *cache)
scs_int scs_compute_direction(ScsWork *work, scs_int i)
scs_int scs_compute_dir_restarted_broyden(ScsWork *work)
scs_int scs_compute_dir_anderson(ScsWork *work)
void scs_free_full_broyden(void)
int scs_int
Definition: glbopts.h:96
scs_int scs_compute_dir_full_broyden(ScsWork *work, scs_int i)
Workspace for SCS.
Definition: scs.h:75
Memory for the computation of directions (Broyden and Anderson's methods).
Definition: scs.h:60