You can perform nonlinear regression using optimization algorithms from Statistics and Machine Learning Toolbox™, Optimization Toolbox™, and Global Optimization Toolbox, including simplex search, interior-point, pattern search, genetic algorithm, and particle swarm optimization. By default, SimBiology performs an ordinary least-squares regression. You can perform a weighted least-squares regression by specifying either a weights vector or a weighting function of observed or predicted responses.