src/estimagic/optimization/process_results.py
def process_internal_optimizer_result(
    res,
    direction,
    params_from_internal,
):
    """Process results of internal optimizers.

    Args:
        res (dict): Results dictionary of an internal optimizer or multistart optimizer.
        direction (str): One of "maximize" or "minimize". Used to switch sign of
            criterion evaluations.
        params_from_internal (callable): Function that converts internal parameters
            to external ones.

    """
    if isinstance(res, str):
        res = _dummy_result_from_traceback(res)
    else:
        res = _process_one_result(res, direction, params_from_internal)

        if "multistart_info" in res:
            res["multistart_info"] = _process_multistart_info(
                res["multistart_info"],
                direction,
                params_from_internal,
            )
    return res
Process results of internal optimizers.

    Args:
        res (dict): Results dictionary of an internal optimizer or multistart optimizer.
        direction (str): One of "maximize" or "minimize". Used to switch sign of
            criterion evaluations.
        params_from_internal (callable): Function that converts internal parameters
            to external ones.

    
Process results of internal optimizers.
Process results of internal optimizers .
def process_internal_optimizer_result(
    res,
    direction,
    params_from_internal,
):
    if isinstance(res, str):
        res = _dummy_result_from_traceback(res)
    else:
        res = _process_one_result(res, direction, params_from_internal)
        if "multistart_info" in res:
            res["multistart_info"] = _process_multistart_info(
                res["multistart_info"],
                direction,
                params_from_internal,
            )
    return res
def process_internal_optimizer_result ( res , direction , params_from_internal , ) : if isinstance ( res , str ) : res = _dummy_result_from_traceback ( res ) else : res = _process_one_result ( res , direction , params_from_internal ) if "multistart_info" in res : res [ "multistart_info" ] = _process_multistart_info ( res [ "multistart_info" ] , direction , params_from_internal , ) return res
Process results of internal optimizers.
Process results of internal optimizers .
"""Process results of internal optimizers.

    Args:
        res (dict): Results dictionary of an internal optimizer or multistart optimizer.
        direction (str): One of "maximize" or "minimize". Used to switch sign of
            criterion evaluations.
        params_from_internal (callable): Function that converts internal parameters
            to external ones.

    """
res
Results dictionary of an internal optimizer or multistart optimizer.
Results dictionary of an internal optimizer or multistart optimizer .
direction
One of "maximize" or "minimize". Used to switch sign of
criterion evaluations.
One of " maximize " or " minimize " . Used to switch sign of criterion evaluations .
params_from_internal
Function that converts internal parameters
to external ones.
Function that converts internal parameters to external ones .