Skip to content

Commit

Permalink
Merge master into develop-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bstellato committed Jan 5, 2021
2 parents 8b03443 + 70bc7d3 commit dcd45c7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
11 changes: 7 additions & 4 deletions docs/citing/index.rst
Expand Up @@ -14,12 +14,15 @@ If you use OSQP for published work, we encourage you to put a star on `GitHub <h
.. code:: latex

@article{osqp,
author = {Stellato, Bartolomeo and Banjac, Goran and Goulart, Paul and Bemporad, Alberto and Boyd, Stephen},
title = {{{OSQP}}: An Operator Splitting Solver for Quadratic Programs},
author = {Stellato, B. and Banjac, G. and Goulart, P. and Bemporad, A. and Boyd, S.},
title = {{OSQP}: an operator splitting solver for quadratic programs},
journal = {Mathematical Programming Computation},
volume = {12},
number = {4},
pages = {637--672},
year = {2020},
doi = {10.1007/s12532-020-00179-2},
url = {https://doi.org/10.1007/s12532-020-00179-2}
url = {https://doi.org/10.1007/s12532-020-00179-2},
}

Infeasibility detection
Expand All @@ -40,7 +43,7 @@ If you use OSQP for published work, we encourage you to put a star on `GitHub <h
}

GPU implementation
GPU implementation and PCG method for solving linear systems in this `paper <https://arxiv.org/pdf/1912.04263.pdf>`__.
GPU implementation and PCG method for solving linear systems in this `paper <https://doi.org/10.1016/j.jpdc.2020.05.021>`__.

.. code:: latex

Expand Down
2 changes: 1 addition & 1 deletion include/glob_opts.h
Expand Up @@ -134,7 +134,7 @@ typedef float c_float; /* for numerical values */
# define c_print mexPrintf
# elif defined PYTHON
# include <Python.h>
# define c_print(...) \
# define c_print(...) \
{ \
PyGILState_STATE gilstate = PyGILState_Ensure(); \
PySys_WriteStdout(__VA_ARGS__); \
Expand Down
4 changes: 1 addition & 3 deletions lin_sys/direct/qdldl/amd/src/SuiteSparse_config.c
Expand Up @@ -58,10 +58,8 @@ struct SuiteSparse_config_struct SuiteSparse_config =
{
// Memory allocation from glob_opts.h in OSQP
c_malloc, c_realloc, c_free,

// Suitesparse printing disabled
// Ignore printing
NULL,

SuiteSparse_hypot,
SuiteSparse_divcomplex

Expand Down
28 changes: 11 additions & 17 deletions src/util.c
Expand Up @@ -106,11 +106,8 @@ void print_setup_header(const OSQPWorkspace *work) {

if (settings->check_termination) {
c_print(" check_termination: on (interval %i),\n",
(int)settings->check_termination);
}
else {
c_print(" check_termination: off,\n");
}
(int)settings->check_termination);
} else {c_print(" check_termination: off,\n");}
# ifdef PROFILING
if (settings->time_limit) {
c_print(" time_limit: %.2e sec,\n", settings->time_limit);
Expand All @@ -119,36 +116,33 @@ void print_setup_header(const OSQPWorkspace *work) {

if (settings->scaling) {
c_print(" scaling: on, ");
}
else {
} else {
c_print(" scaling: off, ");
}

if (settings->scaled_termination) {
c_print("scaled_termination: on\n");
}
else {
} else {
c_print("scaled_termination: off\n");
}

if (settings->warm_start) {
c_print(" warm start: on, ");
}
else {
} else {
c_print(" warm start: off, ");
}

if (settings->polish) {
c_print("polish: on, ");
}
else {
} else {
c_print("polish: off, ");
}
# ifdef PROFILING

if (settings->time_limit) {
c_print("time_limit: %.2e sec\n", settings->time_limit);
}
else {
} else {
c_print("time_limit: off\n");
}
# endif /* ifdef PROFILING */

c_print("\n");
}
Expand Down

0 comments on commit dcd45c7

Please sign in to comment.