Exit flags

The integer values that SCS can return are documented below and are defined in the 'include/scs.h file.

Status

Value

SCS constant name

Solved to desired tolerance

1

SCS_SOLVED

Did not reach desired accuracy, returning best guess of solution

2

SCS_SOLVED_INACCURATE

Unfinished (never returned, only used internally)

0

SCS_UNFINISHED

Primal unbounded / Dual infeasible (to desired tolerance)

-1

SCS_UNBOUNDED

Primal infeasible / Dual unbounded (to desired tolerance)

-2

SCS_INFEASIBLE

Indeterminate (numerical errors when recovering solution) DEPRECATED

-3

SCS_INDETERMINATE

Failed (usually a data input error)

-4

SCS_FAILED

Interrupted (received SIGINT)

-5

SCS_SIGINT

Did not reach desired accuracy, returning best guess of certificate of primal unboundedness

-6

SCS_UNBOUNDED_INACCURATE

Did not reach desired accuracy, returning best guess of certificate of primal infeasibility

-7

SCS_INFEASIBLE_INACCURATE