The self-consistent parametric inference algorithm (SPI): Optimisation in continuous search space