main_convergence.py
def generate_calls(
    n,
    Date,
    n_shooting_list: list,
    dynamics_types: list,
    ode_solver: OdeSolver,
    nstep: int,
    n_threads: int,
    out_path_raw: str,
    model_str: str,
    extra_obj: bool,
):
    """
    This functions generates the calls to the miller_run with different random seeds for each simulation
    while testing different dynamics and equations of motion.

    Parameters
    ----------
    n : int
        Number of random seeds to generate.
    Date : str
        Date of the simulation.
    n_shooting_list : list
        List of tuples with the number of shooting nodes to test.
    dynamics_types : list
        List of MillerDynamics to test.
    ode_solver : OdeSolver
        OdeSolver to use.
    nstep : int
        Number of integration steps.
    n_threads : int
        Number of threads to use.
    out_path_raw : str
        Path to store the raw results.
    model_str : str
        Path to the bioMod model.
    extra_obj : bool
        If True, the extra objective is used for implicit formulations.

    Returns
    -------
    calls : list
        List of calls to the miller_run function.
    """
    calls = []
    for i, dynamics_type in enumerate(dynamics_types):
        for n_shooting in n_shooting_list:
            for i_rand in range(n):
                calls.append(
                    [
                        Date,
                        i_rand,
                        n_shooting,
                        dynamics_type,
                        ode_solver,
                        nstep,
                        n_threads,
                        out_path_raw,
                        model_str,
                        extra_obj,
                    ]
                )
    return calls

    This functions generates the calls to the miller_run with different random seeds for each simulation
    while testing different dynamics and equations of motion.

    Parameters
    ----------
    n : int
        Number of random seeds to generate.
    Date : str
        Date of the simulation.
    n_shooting_list : list
        List of tuples with the number of shooting nodes to test.
    dynamics_types : list
        List of MillerDynamics to test.
    ode_solver : OdeSolver
        OdeSolver to use.
    nstep : int
        Number of integration steps.
    n_threads : int
        Number of threads to use.
    out_path_raw : str
        Path to store the raw results.
    model_str : str
        Path to the bioMod model.
    extra_obj : bool
        If True, the extra objective is used for implicit formulations.

    Returns
    -------
    calls : list
        List of calls to the miller_run function.
    
This functions generates the calls to the miller_run with different random seeds for each simulation
while testing different dynamics and equations of motion.

Parameters

n : int
Number of random seeds to generate.
Date : str
Date of the simulation.
n_shooting_list : list
List of tuples with the number of shooting nodes to test.
dynamics_types : list
List of MillerDynamics to test.

Returns

calls : list
List of calls to the miller_run function.
This functions generates the calls to the miller_run with different random seeds for each simulation while testing different dynamics and equations of motion . Parameters n : int Number of random seeds to generate . Date : str Date of the simulation . n_shooting_list : list List of tuples with the number of shooting nodes to test . dynamics_types : list List of MillerDynamics to test . Returns calls : list List of calls to the miller_run function .
def generate_calls(
    n,
    Date,
    n_shooting_list: list,
    dynamics_types: list,
    ode_solver: OdeSolver,
    nstep: int,
    n_threads: int,
    out_path_raw: str,
    model_str: str,
    extra_obj: bool,
):
    calls = []
    for i, dynamics_type in enumerate(dynamics_types):
        for n_shooting in n_shooting_list:
            for i_rand in range(n):
                calls.append(
                    [
                        Date,
                        i_rand,
                        n_shooting,
                        dynamics_type,
                        ode_solver,
                        nstep,
                        n_threads,
                        out_path_raw,
                        model_str,
                        extra_obj,
                    ]
                )
    return calls
def generate_calls ( n , Date , n_shooting_list : list , dynamics_types : list , ode_solver : OdeSolver , nstep : int , n_threads : int , out_path_raw : str , model_str : str , extra_obj : bool , ) : calls = [ ] for i , dynamics_type in enumerate ( dynamics_types ) : for n_shooting in n_shooting_list : for i_rand in range ( n ) : calls . append ( [ Date , i_rand , n_shooting , dynamics_type , ode_solver , nstep , n_threads , out_path_raw , model_str , extra_obj , ] ) return calls
This functions generates the calls to the miller_run with different random seeds for each simulation
while testing different dynamics and equations of motion.
This functions generates the calls to the miller_run with different random seeds for each simulation while testing different dynamics and equations of motion .
"""
    This functions generates the calls to the miller_run with different random seeds for each simulation
    while testing different dynamics and equations of motion.

    Parameters
    ----------
    n : int
        Number of random seeds to generate.
    Date : str
        Date of the simulation.
    n_shooting_list : list
        List of tuples with the number of shooting nodes to test.
    dynamics_types : list
        List of MillerDynamics to test.
    ode_solver : OdeSolver
        OdeSolver to use.
    nstep : int
        Number of integration steps.
    n_threads : int
        Number of threads to use.
    out_path_raw : str
        Path to store the raw results.
    model_str : str
        Path to the bioMod model.
    extra_obj : bool
        If True, the extra objective is used for implicit formulations.

    Returns
    -------
    calls : list
        List of calls to the miller_run function.
    """
n
Date
n_shooting_list
list
dynamics_types
list
ode_solver
OdeSolver
nstep
int
n_threads
int
out_path_raw
str
model_str
str
extra_obj
bool