TomSym is a TOMLAB class for modeling optimization, constraint programming and optimal control problems in MATLAB, originally developed to enable support for ILOG’s CP Optimizer. The environment is included with the general TOMLAB Base Module. The class allows for rapid prototyping and modeling of a wide variety of problem types, including: Linear and quadratic programming Nonlinear and semidefinite programming Least squares problem (L1, L2, Infinity norm) Mixed-integer programming The internal engine (parser) provides for a number of advantages: Analytical derivatives (first and second order) are automatically generated Possible to generate Matlab code for further processing Optimal modeling of expressions such as min, max, abs and more