0001 function [linsys_solver] = string_to_linsys_solver(linsys_solver_string)
0002 linsys_solver_string = lower(linsys_solver_string);
0003 switch linsys_solver_string
0004 case 'qdldl'
0005 linsys_solver = osqp.constant('QDLDL_SOLVER');
0006 case 'mkl pardiso'
0007 linsys_solver = osqp.constant('MKL_PARDISO_SOLVER');
0008
0009 case ''
0010 linsys_solver = osqp.constant('QDLDL_SOLVER');
0011 otherwise
0012 warning('Linear system solver not recognized. Using default solver QDLDL.')
0013 linsys_solver = osqp.constant('QDLDL_SOLVER');
0014 end