#include "glbopts.h"
#include <string.h>
#include "cones.h"
#include "linAlg.h"
#include "linSys.h"
#include "util.h"
#include "ctrlc.h"
#include "constants.h"
#include <math.h>
#include <stdio.h>
#include <time.h>
#include "scs.h"
#include "linsys/amatrix.h"
Go to the source code of this file.
#define _POSIX_C_SOURCE 199309L |
#define SCS_METADATA_TEXT_SIZE 1024 |
Parses a YAML file and constructs/initialises the corresponding ScsData and ScsCone objects.
Example of use:
const char * filepath = "matlab/scs-yaml/example.yml";
if (status != 0) {
}
- Parameters
-
filepath | Absolute or relative path to YAML file |
data | pointer-to-pointer to a ScsData object. This function will initialise data using the YAML file. |
cone | pointer-to-pointer to a ScsCone object. This function will initialise cone using the YAML file. |
- Returns
- status code; returns
0
if parsing has succeeded; a positive error code otherwise.
- See Also
- scs_to_YAML
-
Saving and loading problems (detailed documentation)
- Parameters
-
filepath | relative or absolute path to a file which this function will create. |
The caller must have the necessary permissions to create the file, otherwise the method returns the error code 101
.
- Parameters
-
- Returns
- this function returns
0
on success and a positive status code otherwise.
- See Also
- scs_from_YAML
-
ScsConicProblemMetadata
-
Saving and loading problems (detailed documentation)