TomRun

From TomWiki
Revision as of 04:34, 22 July 2011 by Elias (talk | contribs) (Created page with "Category:Utility Functions ==tomRun== ===Purpose=== General multi-solver driver routine for TOMLAB. ===Calling Syntax=== {| class="wikitable" class="wikitable" |-valign=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

addPwLinFun.

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