testProblem

Test an OPTI problem against all available solvers

Syntax

[times,results] = testProblem(optiObj)

[times,results] = testProblem(optiObj,solvers)

Description

[times,results] = testProblem(optiObj) runs the OPTI object through each solver available to solve the type of problem, recording the results and returning the execution times and a results structure. The function will also print a summary to the command window.

[times,results] = testProblem(optiObj,solvers) uses the supplied solvers in a cell array as the test solvers.

Example

Assuming Opt is an OPTI object containing an LP, use the following to test CLP & GLPK solving it:

>> [times,results] = testProblem(Opt,{'CLP','GLPK'});