TomRun
tomRun
Purpose
General multi-solver driver routine for TOMLAB.
Calling Syntax
Result = tomRun(Solver, Prob, PriLev, ask) | Call Solver on the problem defined in structure Prob |
Result = tomRun(Solver, probFile, probNumber, Prob, PriLev, ask) | Call Solver on problem probNumber in
Init File probFile.m |
Result = tomRun(Solver, probType, probNumber, PriLev, ask) | Call Solver on problem number probNumber
in the default Init File for problem type probType |
tomRun(probType) | Display all solvers for probType |
tomRun | Display all available solvers for all problem types |
Description of Inputs
Solver | The name of the solver that should be used to optimize the problem. If the solver may run several
different optimization algorithms, then the values of Prob.Solver.Alg and Prob.optParam.Method determines which algorithm and method to be used. |
Prob | Problem description structure, see TOMLAB Appendix A. |
ask | Flag if questions should be asked during problem definition.
ask < 0 Use values in uP if defined or defaults. ask = 0 Use defaults. ask = 1 Ask questions in probFile. ask = [] If uP = [], ask = -1, else ask = 0. |
PriLev | Print level when displaying the result of the optimization in the routine PrintResult. See
PriLev = 0 No output. PriLev = 1 Final result, shorter version. PriLev = 2 Final result. PriLev = 3 Full results. The printing level in the optimization solver is controlled by setting the parameter Prob.PriLevOpt. |
probFile | User problem Init File. |
probNumber | Problem number in probFile. probNumber = 0 gives a menu in probFile. |
Description of Outputs
Result | Structure with result from optimization, see TOMLAB Appendix A. |
Description
The driver routine tomRun is called from the command line. If called with less than the required two
parameters, a list of available solvers are printed.
M-files Used
PrintResult.m, probInit.m, mkbound.m