Changed cluster_parameter.py to return fig_error to minimize_cost.py