# TEGO The `TMaster` subclass for EGO is `TEGO`. Its constructor has two standard arguments, a {{tds}} and a `TRun` pointer. Three kinds of {{tds}} can be passed to the class : - An empty tds with the input {{tattr}} declared: initial points are random; - A tds filled with a sampler where input {{tattr}} are declared: initial points are defined by user but they need to be evaluated. - A tds filled with a launcher or relauncher where both input and output {{tattr}} are declared: initial filling phase can be skipped; The `TEGO` objects have a method named `setSize` with two integer arguments: the first one, used in the case of an empty tds, gives the number of random points needed for the construction of the first {{surmod}}; the second one gives the maximum evaluation number of the expensive code. Two different solvers can be defined, one for the {{surmod}} construction (using `setModeler` method) and one for the next point search (using `setSolver` method). If they are not defined a default solver is used. Optimization loop ends when either: - max number evaluation is reached; - expected improvement objective is lower than a threshold; - a Cholesky decomposition problem occurs in the {{surmod}} construction. In these version, results are not filtered: all evaluated points are saved in the {{tds}}