# Path: pywr/core.py



import pywr
import pandas
import datetime
import pytest
from pywr.core import (
    Model,
    Input,
    Output,
    Link,
    Storage,
    AggregatedStorage,
    AggregatedNode,
)
from helpers import load_model
    Make a simple model with a single Input and Output.

    Input -> Link -> Output

    """
    model = Model()
    inpt = Input(model, name="Input")
    lnk = Link(model, name="Link", cost=1.0)
    inpt.connect(lnk)
    otpt = Output(model, name="Output")
    lnk.connect(otpt)

    return model


@pytest.fixture()
def simple_storage_model(request):
    """
    Make a simple model with a single Input, Storage and Output.

    Input -> Storage -> Output
    """

    model = pywr.core.Model(
        start=pandas.to_datetime("2016-01-01"),
        end=pandas.to_datetime("2016-01-05"),
        timestep=datetime.timedelta(1),
    )

    inpt = Input(model, name="Input", max_flow=5.0, cost=-1)

# Path: pywr/core.py



# Path: tests/fixtures.py
import pywr
import pandas
import datetime
import pytest
from pywr.core import (
    Model,
    Input,
    Output,
    Link,
    Storage,
    AggregatedStorage,
    AggregatedNode,
)
from helpers import load_model

    Make a simple model with a single Input and Output.

    Input -> Link -> Output

    """
    model = Model()
    inpt = Input(model, name="Input")
    lnk = Link(model, name="Link", cost=1.0)
    inpt.connect(lnk)
    otpt = Output(model, name="Output")
    lnk.connect(otpt)

    return model


@pytest.fixture()
def simple_storage_model(request):
    """
    Make a simple model with a single Input, Storage and Output.

    Input -> Storage -> Output
    """

    model = pywr.core.Model(
        start=pandas.to_datetime("2016-01-01"),
        end=pandas.to_datetime("2016-01-05"),
        timestep=datetime.timedelta(1),
    )

    inpt = Input(model, name="Input", max_flow=5.0, cost=-1)

    res = Storage(