It uses the Anderson-Bjork modification of Regula Falsi method for the inverse solving of a correlation. The correlation (f) is defined as a replaceable function. You must extend the CorrelationSolver redeclaring f as the function you want to use. This function must return a Real value, and must accept the calling parameters that will be used by the solver.
partial function CorrelationSolver input Integer cor; input Real coef[:]; input Real MW; input Real y; input Real max = 1000; input Real min = 50; input Real tol = 1.0e-7; output Real x; end CorrelationSolver;