Hierarchical and optimization methods for the characterization of tomato genotypes