def linear_constraints():
     lc.add_storage_balance(om, block)
     var.set_storage_cap_bounds(om, block)
     if not block.optimization_options.get('investment', False):
         var.set_bounds(om, block, side='output')
         var.set_bounds(om, block, side='input')
     else:
         lc.add_storage_charge_discharge_limits(om, block)
def _(e, om, block):
    """Simple transport assembler grouping the constraints
    for simple transport components

    The method uses the simple_transformer_assembler() method.

    Parameters
    ----------
    See :func:`assembler`.

    Returns
    -------
    See :func:`assembler`.
    """

    # input output relation for simple transport
    lc.add_simple_io_relation(om, block)
    # bounds
    var.set_bounds(om, block, side='output')
    return(om)
 def linear_constraints():
     lc.add_simple_extraction_chp_relation(om, block)
     var.set_bounds(om, block, side='output')
     var.set_bounds(om, block, side='input')
 def linear_constraints():
     lc.add_simple_io_relation(om, block)
     var.set_bounds(om, block, side='output')