'Converts the solver output into standard form.
Parameters
results_dict : dict
The solver output.
data : dict
Information about the problem.
cached_data : dict
A map of solver name to cached problem data.
Returns
dict
The solver output in standard form.'

def format_results(self, results_dict, data, cached_data):

    new_results = {}
    status = None
    if self.is_mip(data):
        status = self.STATUS_MAP_MIP[results_dict['status']]
    else:
        status = self.STATUS_MAP_LP[results_dict['status']]
    new_results[s.STATUS] = status
    if (new_results[s.STATUS] in s.SOLUTION_PRESENT):
        new_results[s.PRIMAL] = results_dict['x']
        primal_val = results_dict['obj_value']
        new_results[s.VALUE] = primal_val
    return new_results
