Fitting of experimental data to implicit models using a constrained variation algorithm