Moved loadings of cost_classes/constraint_classes/cost_weights to solver base class.