foxes_opt.problems.layout.geom_layouts.constraints.Valid.n_components()[source] Returns the number of components of the function. Returns¶ int:The number of components.