Home > matpower7.1 > mp-opt-model > .github > osqp > string_to_linsys_solver.m

string_to_linsys_solver

PURPOSE ^

SYNOPSIS ^

function [linsys_solver] = string_to_linsys_solver(linsys_solver_string)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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     % Default solver: QDLDL
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

Generated on Fri 09-Oct-2020 11:21:31 by m2html © 2005