@@ -22,7 +22,7 @@ function most_ex7_suc(quiet)
2222mpopt = mpoption(mpopt , ' most.price_stage_warn_tol' , 10 );
2323
2424%% solver options
25- if have_fcn (' cplex' )
25+ if have_feature (' cplex' )
2626 % mpopt = mpoption(mpopt, 'cplex.lpmethod', 0); %% automatic
2727 % mpopt = mpoption(mpopt, 'cplex.lpmethod', 1); %% primal simplex
2828 mpopt = mpoption(mpopt , ' cplex.lpmethod' , 2 ); %% dual simplex
@@ -32,12 +32,12 @@ function most_ex7_suc(quiet)
3232 mpopt = mpoption(mpopt , ' cplex.opts.mip.tolerances.absmipgap' , 0 );
3333 mpopt = mpoption(mpopt , ' cplex.opts.threads' , 2 );
3434end
35- if have_fcn (' glpk' )
35+ if have_feature (' glpk' )
3636 mpopt = mpoption(mpopt , ' glpk.opts.mipgap' , 0 );
3737 mpopt = mpoption(mpopt , ' glpk.opts.tolint' , 1e- 10 );
3838 mpopt = mpoption(mpopt , ' glpk.opts.tolobj' , 1e- 10 );
3939end
40- if have_fcn (' gurobi' )
40+ if have_feature (' gurobi' )
4141 % mpopt = mpoption(mpopt, 'gurobi.method', -1); %% automatic
4242 % mpopt = mpoption(mpopt, 'gurobi.method', 0); %% primal simplex
4343 mpopt = mpoption(mpopt , ' gurobi.method' , 1 ); %% dual simplex
@@ -46,7 +46,7 @@ function most_ex7_suc(quiet)
4646 mpopt = mpoption(mpopt , ' gurobi.opts.MIPGap' , 0 );
4747 mpopt = mpoption(mpopt , ' gurobi.opts.MIPGapAbs' , 0 );
4848end
49- if have_fcn (' mosek' )
49+ if have_feature (' mosek' )
5050 sc = mosek_symbcon ;
5151 % mpopt = mpoption(mpopt, 'mosek.lp_alg', sc.MSK_OPTIMIZER_FREE); %% default
5252 % mpopt = mpoption(mpopt, 'mosek.lp_alg', sc.MSK_OPTIMIZER_INTPNT); %% interior point
@@ -61,7 +61,7 @@ function most_ex7_suc(quiet)
6161 mpopt = mpoption(mpopt , ' mosek.opts.MSK_DPAR_MIO_TOL_REL_GAP' , 0 );
6262 mpopt = mpoption(mpopt , ' mosek.opts.MSK_DPAR_MIO_TOL_ABS_GAP' , 0 );
6363end
64- if have_fcn (' intlinprog' )
64+ if have_feature (' intlinprog' )
6565 % mpopt = mpoption(mpopt, 'linprog.Algorithm', 'interior-point');
6666 % mpopt = mpoption(mpopt, 'linprog.Algorithm', 'active-set');
6767 % mpopt = mpoption(mpopt, 'linprog.Algorithm', 'simplex');
0 commit comments