abstract foxes.opt.core.FarmConstraint.n_components() Returns the number of components of the function. ReturnsΒΆ int:The number of components.