switch_model/utilities/__init__.py
def pre_solve(instance, outputs_dir=None):
    """
    Call pre-solve function (if present) in all modules used to compose this model.
    This function can be used to adjust the instance after it is created and before it is solved.
    """
    for module in instance.get_modules():
        if hasattr(module, 'pre_solve'):
            module.pre_solve(instance)

    Call pre-solve function (if present) in all modules used to compose this model.
    This function can be used to adjust the instance after it is created and before it is solved.
    
Call pre-solve function (if present) in all modules used to compose this model.
This function can be used to adjust the instance after it is created and before it is solved.
Call pre - solve function ( if present ) in all modules used to compose this model . This function can be used to adjust the instance after it is created and before it is solved .
def pre_solve(instance, outputs_dir=None):
    for module in instance.get_modules():
        if hasattr(module, 'pre_solve'):
            module.pre_solve(instance)
def pre_solve ( instance , outputs_dir = None ) : for module in instance . get_modules ( ) : if hasattr ( module , 'pre_solve' ) : module . pre_solve ( instance )
Call pre-solve function (if present) in all modules used to compose this model.
Call pre - solve function ( if present ) in all modules used to compose this model .
"""
    Call pre-solve function (if present) in all modules used to compose this model.
    This function can be used to adjust the instance after it is created and before it is solved.
    """
instance
outputs_dir