Sorry, but Python is not "my thing".. Could take a look, but i think it will not bring anything usefull
Basically to reduce load, improve performance we need to improve how the MLAT math is done. And it's single threaded -- ugh. Currently uses: https://docs.scipy.org/doc/scipy-0.18.1/reference/generated/scipy.optimize.leastsq.html Maybe would improve it? https://docs.scipy.org/doc/scipy-0.18.1/reference/generated/scipy.optimize.least_squares.html The code: https://github.com/mutability/mlat-server/blob/master/mlat/server/solver.py
What would be amazing is to rewrite the MLAT server in Golang or C .... That's beyond my skill level ..
https://docs.scipy.org/doc/scipy/reference/optimize.html The scipy.optimize package provides several commonly used optimization algorithms. A detailed listing is available: scipy.optimize (can also be found by help(scipy.optimize)). The module contains: Unconstrained and constrained minimization of multivariate scalar functions (minimize()) using a variety of algorithms (e.g. BFGS, Nelder-Mead simplex, Newton Conjugate Gradient, COBYLA or SLSQP) Global (brute-force) optimization routines (e.g., anneal(), basinhopping()) Least-squares minimization (leastsq()) and curve fitting (curve_fit()) algorithms Scalar univariate functions minimizers (minimize_scalar()) and root finders (newton()) Multivariate equation system solvers (root()) using a variety of algorithms (e.g. hybrid Powell, Levenberg-Marquardt or large-scale methods such as Newton-Krylov).
Code: # The core of it all. Not very big, is it? # (Admittedly the entire least-squares solver is hidden within scipy..) Where is configured which algorithm is used?
That's the crutch. That MLAT server is old and uses leastsq() and not least_squares(); hence only one algo. Since he's working/contracted for FA now and since 2016 - there will be no further updates, especially since in 2 years MLAT will be non-existant. Currently uses: https://scipy.github.io/devdocs/generated/scipy.optimize.leastsq.html#scipy.optimize.leastsq Maybe would improve it? https://scipy.github.io/devdocs/gen...ast_squares.html#scipy.optimize.least_squares The code: https://github.com/mutability/mlat-server/blob/master/mlat/server/solver.py
It looks that FA MLAT is rewritten to use scipy.optimize.least_squares. But probably not open source anymore. Can you send me actual MLAT server config file?