TOMLAB Utility Functions

From TomWiki
Jump to navigationJump to search

Notice.png

This page is part of the TOMLAB Manual. See TOMLAB Manual.

In the following subsections the driver routine and the utility functions in TOMLAB will be described.

tomRun

General multi-solver driver routine for TOMLAB.

addPwLinFun

Adds piecewise linear function to a TOMLAB MIP problem.

binbin2lin

Adds constraints when modeling with binary variables which is the product of two other variables.

bincont2lin

Adds constraints when modeling with binary variables which are multiplied by integer or continuous variables. This is the most efficient way to get rid off quadratic objectives or constraints.

checkFuncs

TOMLAB routine for verifying user supplied routines. The routine could be used for general debugging.

checkDerivs

TOMLAB routine for verifying derivatives of user supplied routines.

cpTransf

Transform general convex programs on the form

estBestHessian

estBestHessian estimates the best Hessian. Result.x k(:,1) will be used for the estimation. The best step-size is estimated by TOMLAB. If the gradient is given it will be used. The analytical hessian is returned if given.

lls2qp

Converts an lls problem to a new problem based on the formula below. Only the objective function is affected. The problem can be of any type with an LLS objective.

LineSearch

LineSearch solves line search problems of the form

preSolve

Simplify the structure of the constraints and the variable bounds in a linear constrained program.

PrintResult

Prints the result of an optimization.

runtest

Run all selected problems defined in a problem file for a given solver.

SolverList

Prints the available solvers for a certain solvType.

StatLS

Compute parameter statistics for least squares problems.

systest

Run big test to check for bugs in TOMLAB.