Skip to content

Renewable fishery with capital

Meadows' fishing fleet, capital that grows on a renewable resource.

  • Class: FisheryCapitalSystem
  • Import: from skcomplex.systems.economics.resources import FisheryCapitalSystem
  • Field: economics/resources
  • Topics: renewable resource, system dynamics, ode
  • References:
    • Meadows 2008

The fishery_capital example

Example

Use this system

The block imports the class and simulates the system with its default parameters and its tuned run settings.

from skcomplex.systems.economics.resources import FisheryCapitalSystem

trajectory = FisheryCapitalSystem().prepare().simulate()

Parameters

The model parameters take these defaults, and set_params changes them.

Parameter Default
resource 1000.0
capital 5.0
cost 1.0
growth_goal 0.1
lifetime 20.0
yield_table (0.0, 0.01, 0.04, 0.09, 0.16, 0.25, 0.36, 0.49, 0.64, 0.8...
solver 'auto'
backend 'auto'

Tags

The system with its default parameters has these capability tags, which solvers and analyses check.

Tag Values
Time continuous
Space none
Laws rate
Randomness unknown
Domains real
Structure fixed

Class

The source of the class shows how it builds its components from its model parameters.

class FisheryCapitalSystem(BaseSystem):
    """Meadows' fishing fleet, capital that grows on a renewable resource.

    The capital can overshoot the resource. The capital grows while the harvest pays, and the outcome depends on the
    yield per unit of capital. With the default yield, which falls with the square of the stock, the fleet and the stock
    settle at an equilibrium. A technology that keeps the yield high at low stocks lets the fleet overshoot, and the
    stock and then the fleet collapse. The system has the resource `fishery.resource` and the capital `fishery.capital`.

    Args:
        resource:
            The initial resource stock.

        capital:
            The initial capital.

        cost:
            The operating cost per unit of capital.

        growth_goal:
            The largest investment per unit of capital.

        lifetime:
            The average lifetime of the capital.

        yield_table:
            The yield per unit of capital at the resource levels 0, 100, ..., 1000.

        label:
            The label of the system, which names it when it is nested in another one.

        solver:
            The solver of the problem, or `'auto'` for the one the system chooses.

        backend:
            The backend that evaluates the compiled functions, or `'auto'` for the one the system chooses.

    Examples:
        >>> from skcomplex.systems.economics.resources import FisheryCapitalSystem
        >>> FisheryCapitalSystem(lifetime=10.0).prepare().system_.elements[0].lifetime
        10.0
    """

    field = 'economics/resources'
    topics = ('renewable resource', 'system dynamics', 'ode')
    references = ('Meadows 2008',)
    until = 100.0
    dt = 1.0

    def __init__(
        self,
        resource: float = 1000.0,
        capital: float = 5.0,
        *,
        cost: float = 1.0,
        growth_goal: float = 0.1,
        lifetime: float = 20.0,
        yield_table: Sequence[float] = FISH_YIELD,
        label: str = 'system',
        solver: BaseSolver | str = 'auto',
        backend: BaseBackend | str = 'auto',
    ) -> None:
        super().__init__(label, solver=solver, backend=backend)
        self.resource = resource
        self.capital = capital
        self.cost = cost
        self.growth_goal = growth_goal
        self.lifetime = lifetime
        self.yield_table = yield_table

    @staticmethod
    def _get_fish_revenue(holder: SimpleNamespace, yields: Sequence[float], prices: Sequence[float]) -> Expression:
        """Return the revenue of the harvest at the price, a table of the yield."""
        return series(
            OilEconomySystem._get_efficiency(holder, yields),
            YIELD_LEVELS,
            prices,
        ) * OilEconomySystem._harvest(holder, yields)

    def _prepare(self, context: Sequence[Observable] | None = None) -> None:
        """Set the system of the components built from the model parameters."""
        super()._prepare(context)
        fishery = FisheryElement(
            'fishery',
            resource=self.resource,
            capital=self.capital,
            cost=self.cost,
            growth_goal=self.growth_goal,
            lifetime=self.lifetime,
            yield_table=tuple(float(value) for value in self.yield_table),
        )
        yields, regenerations, prices = fishery.yield_table, fishery.regeneration_table, fishery.price_table
        fish = Interaction(
            'fish',
            roles={'target': 'fishery'},
            laws=lambda s: [
                RateLaw(
                    {s.target.resource: +1},
                    s.target.resource * series(s.target.resource, RESOURCE_LEVELS, regenerations),
                    label='regeneration',
                ),
                RateLaw({s.target.resource: -1}, OilEconomySystem._harvest(s.target, yields), label='harvest'),
            ],
        )
        investment = Interaction(
            'investment',
            roles={'target': 'fishery'},
            laws=lambda s: [
                RateLaw(
                    {s.target.capital: +1},
                    OilEconomySystem._get_investment(s.target, self._get_fish_revenue(s.target, yields, prices)),
                    label='investment',
                ),
            ],
        )
        depreciation = Interaction(
            'depreciation',
            roles={'target': 'fishery'},
            laws=lambda s: [
                RateLaw({s.target.capital: -1}, s.target.capital / s.target.lifetime, label='depreciation'),
            ],
        )
        self.system_ = System(
            self.label,
            elements=[fishery],
            interactions=[fish, investment, depreciation],
        )

Components

The system uses these element and interaction classes, each with its nearest class of the core.

Elements:

Interactions:

  • Interaction
class FisheryElement(Element):
    """Capital that harvests a regenerating resource.

    Its price rises as the yield falls. The resource regenerates at a rate per unit of stock that is a hump-shaped table
    of the stock, zero when it is empty or full. The harvest is the capital times the yield per unit of capital, a table
    of the stock. The fishery holds the stocks, the parameters, and the tables, and transfers within it of the system
    move the resource and the capital.

    Args:
        label:
            The label of the fishery.

        resource:
            The initial resource stock.

        capital:
            The initial capital.

        cost:
            The operating cost per unit of capital.

        growth_goal:
            The largest investment per unit of capital.

        lifetime:
            The average lifetime of the capital.

        yield_table:
            The yield per unit of capital at the resource levels 0, 100, ..., 1000.

        regeneration_table:
            The regeneration rate at the resource levels 0, 100, ..., 1000.

        price_table:
            The price at the yields 0, 0.1, 0.2, 0.4, 0.6, 0.8, and 1.

    Examples:
        >>> from skcomplex.systems.economics.resources import FisheryElement
        >>> FisheryElement('fishery', lifetime=15.0).lifetime
        15.0
    """

    def __init__(
        self,
        label: str,
        *,
        resource: Annotated[float, RealSet.closed_open(0, oo), Quantity('fish')] = 1000.0,
        capital: Annotated[float, RealSet.closed_open(0, oo), Quantity('capital')] = 5.0,
        cost: Annotated[float, RealSet.closed_open(0, oo)] = 1.0,
        growth_goal: Annotated[float, RealSet.closed_open(0, oo)] = 0.1,
        lifetime: Annotated[float, RealSet.open(0, oo)] = 20.0,
        yield_table: Sequence[float] = FISH_YIELD,
        regeneration_table: Sequence[float] = REGENERATION,
        price_table: Sequence[float] = PRICE_BY_YIELD,
    ) -> None:
        super().__init__(label)
        self.resource = resource
        self.capital = capital
        self.cost = cost
        self.growth_goal = growth_goal
        self.lifetime = lifetime
        self.yield_table = yield_table
        self.regeneration_table = regeneration_table
        self.price_table = price_table

class Interaction(BaseInteraction):
    """An interaction whose laws run once for the elements its roles bind.

    It states the laws that change the values of the elements its roles bind, such as gravity on a ball in
    `Interaction('gravity', roles={'target': 'ball'}, laws=lambda s: [RateLaw(s.target.x.diff(s.t, 2), -9.81)])`. When a
    role binds a group, the laws run once for every member, as arrays. With `among` and `along`, they run once for every
    edge of a network and read `s.source` and `s.target`, the members at its two ends, or once for every hyperedge or
    random small group and read `s.member`, `s.others`, and `s.members`. With `within`, they run once for every pair of
    members closer than a radius and read `s.first` and `s.second`. A subclass takes its roles, typed `Role`, and its
    parameters as arguments of its `__init__` and sets `laws_` in its `_prepare`. It states predation between two
    populations, a reaction between two chemicals, and an infection along the contacts of a network.

    Read more in the user guide, under Interactions.

    Args:
        label:
            The name of the interaction, unique among the components of its system, such as `'predation'`.

        roles:
            The element each role binds, by the name of the role, such as `{'target': 'ball'}`, for a rule written
            without a class, or `None`.

        laws:
            The function of the namespace that returns the laws of a rule written without a class, such as
            `lambda s: [RateLaw(s.target.n.diff(s.t), s.target.n)]`, the laws themselves when they read no element, or
            `None`.

        among:
            The group whose members sit at the ends of the edges, such as `'people'`, or `None` to bind elements by
            their roles only. A subclass annotates it as a role, and a rule written without a class binds it as one.

        along:
            `True` for the edges of the network the group lives on, the name of a layer of a network with several, such
            as `'contacts'`, `'hyperedges'` for its hyperedges, `('hyperedges', k)` for its hyperedges of `k` members,
            `RandomPartition(k)` for random groups of `k` members drawn at every step, `'neighborhoods'` for every
            member with the members around it, or `None` for no edges. On the edges, the laws read the member of an
            element that sits on them as `s.edge`, and on the hyperedges as `s.hyperedge`.

        within:
            A `RadiusNeighborhood(r)` for laws that run once for every pair of members of the roles `first` and `second`
            closer than `r`, which read `s.first` and `s.second` and give the laws of both, such as the repulsion of
            walkers of two crowds, or `None` for no pairs. With `among`, both members come from that group. The laws may
            give the energy of the pair as `ObjectiveLaw(V)` in place of its forces, and each member then feels the
            force `-dV/dx` on its position `x`.

    See Also:
        BaseInteraction: The base of every interaction.
        RandomPartition: Groups the members of a group at random at every step.
        TrainingInteraction: Trains the parameters of a nested system.

    Examples:
        >>> from skcomplex.core.components.interactions import Interaction
        >>> from skcomplex.core.components.laws import RateLaw
        >>> birth = Interaction('birth', roles={'target': 'fish'}, laws=lambda s: [RateLaw(s.target.n.diff(s.t), 1)])
        >>> birth.roles
        {'target': 'fish'}
    """

    def __init__(
        self,
        label: str,
        *,
        roles: Mapping[str, object] | None = None,
        laws: Callable[[SimpleNamespace], Sequence[BaseLaw]] | Sequence[BaseLaw] | None = None,
        among: str | None = None,
        along: bool | str | tuple[str, int] | RandomPartition | None = None,
        within: RadiusNeighborhood | None = None,
    ) -> None:
        super().__init__(label)
        self.roles = roles
        self.laws = laws
        self.among = among
        self.along = along
        self.within = within

    def _get_declared(self) -> Mapping[str, _DeclaredVariableSpec]:
        """Return the numeric arguments as parameters, and `roles` and `among` as roles.

        With `within`, `among` binds both members of a pair, `first` and `second`.
        """
        declared = dict(super()._get_declared())
        for name, binding in (self.roles or {}).items():
            declared[name] = _DeclaredVariableSpec(binding, RoleSpec())
        if self.among is not None and self.within is not None:
            for name in PAIR_ROLES:
                declared.setdefault(name, _DeclaredVariableSpec(self.among, RoleSpec()))
        elif self.among is not None and 'among' not in declared and 'among' not in self._get_specs():
            declared['among'] = _DeclaredVariableSpec(self.among, RoleSpec())
        return declared

    @classmethod
    def _get_state_arguments(cls, role: RoleSpec) -> tuple[str, ...]:
        """Return the arguments that name the states a role reads.

        The mapping `roles` of bindings names none.
        """
        return tuple(name for name in super()._get_state_arguments(role) if name != 'roles')

    def _get_binding(self, role: str) -> object:
        """Return what a role binds, from `roles` or from the argument of its name.

        Args:
            role:
                The name of the role.

        Returns:
            binding:
                The label, labels, or entries the role binds, or `None` when it binds nothing.
        """
        if self.roles is not None and role in self.roles:
            return self.roles[role]
        if self.among is not None and self.within is not None and role in PAIR_ROLES:
            return self.among
        return super()._get_binding(role)

    def _check_arguments(self) -> None:
        """Raise an error for roles, laws, or groups the interaction cannot take.

        Raises:
            ValidationError:
                A role of `roles` takes the name of an argument, `laws` is neither a function nor a list of laws, or
                `along` names hyperedges of fewer than two members.
        """
        clashes = sorted(set(self.roles or {}) & {'label', 'roles', 'laws', 'among', 'along'})
        if clashes:
            error_msg = f'The role {clashes[0]!r} of {self.label!r} takes the name of an argument. Rename the role.'
            raise ValidationError(error_msg)
        if self.laws is not None and not callable(self.laws) and not isinstance(self.laws, list | tuple):
            error_msg = (
                f'The laws of {self.label!r} are {self.laws!r}. Give a function that takes the bound elements as '
                '`s` and returns the laws, such as `laws=lambda s: [RateLaw(s.target.n.diff(s.t), s.target.n)]`.'
            )
            raise ValidationError(error_msg)
        if isinstance(self.along, tuple) and not self._is_sized(self.along):
            error_msg = (
                f'{self.label!r} runs along {self.along!r}. Give the hyperedges of one size as a whole number of 2 or '
                "more, such as `along=('hyperedges', 3)`."
            )
            raise ValidationError(error_msg)
        if isinstance(self.along, RandomPartition):
            self.along._check()
        grouped = isinstance(self.along, RandomPartition) or self.along == NEIGHBORHOODS
        if grouped and self.among is None:
            error_msg = f'{self.label!r} runs along groups of members. Name their group with `among`.'
            raise ValidationError(error_msg)
        super()._check_arguments()

    def _prepare(self, context: SimpleNamespace) -> None:
        """Set the laws of `laws` for a binding.

        Args:
            context:
                The namespace of the elements a binding of the roles names.
        """
        super()._prepare(context)
        if self.laws is not None:
            self.laws_ = list(self.laws(context) if callable(self.laws) else self.laws)

    @staticmethod
    def _is_sized(along: tuple[object, ...]) -> bool:
        """Return whether `along` names hyperedges of a whole size of at least two."""
        if len(along) != MIN_SIZE or along[0] != HYPEREDGES:
            return False
        size = along[1]
        return isinstance(size, int) and not isinstance(size, bool) and size >= MIN_SIZE

    def _get_draws(self) -> bool:
        """Return whether the interaction draws, as it does along random groups."""
        return super()._get_draws() or isinstance(self.along, RandomPartition)

    def _runs_on_edges(self) -> bool:
        """Return whether the interaction runs along edges."""
        grouped = self._runs_on_hyperedges() or self._get_grouping() is not None
        return self.along is not None and self.along is not False and not grouped

    def _runs_on_hyperedges(self) -> bool:
        """Return whether the interaction runs along the hyperedges of a network."""
        return self.along == HYPEREDGES or (isinstance(self.along, tuple) and self.along[0] == HYPEREDGES)

    def _get_hyperedge_size(self) -> int | None:
        """Return the size `along` gives the hyperedges, or `None` for every size."""
        return int(self.along[-1]) if isinstance(self.along, tuple) and self._runs_on_hyperedges() else None

    def _get_within(self) -> RadiusNeighborhood | None:
        """Return the neighbourhood of the pairs the laws run for, or `None` for no pairs."""
        return self.within

    def _get_layer(self) -> str | None:
        """Return the layer `along` names, or `None` for no layer."""
        if not isinstance(self.along, str) or self.along == NEIGHBORHOODS or self._runs_on_hyperedges():
            return None
        return self.along

    def _get_grouping(self) -> tuple[str, int, str] | None:
        """Return the kind, size, and reduction of the groups `along` names, or `None`."""
        if isinstance(self.along, RandomPartition):
            return ('partition', self.along.size, 'sum')
        if self.along == NEIGHBORHOODS:
            return ('neighborhood', 0, 'sum')
        return None

Equations

The equations are those that symbolic returns for the system with its default parameters.

fishery.resource: diff(resource_fishery(t), t) == resource_fishery(t)*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0025*resource_fishery(t), 0.0015000000000000002*resource_fishery(t) + 0.09999999999999998), where(resource_fishery(t) < 300.0, 0.0007999999999999996*resource_fishery(t) + 0.2400000000000001, where(resource_fishery(t) < 400.0, 0.00020000000000000017*resource_fishery(t) + 0.41999999999999993, 0.5))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, -0.00020000000000000017*resource_fishery(t) + 0.6000000000000001, where(resource_fishery(t) < 700.0, -0.0007999999999999996*resource_fishery(t) + 0.9599999999999997, -0.0010000000000000005*resource_fishery(t) + 1.1000000000000003)), where(resource_fishery(t) < 900.0, -0.0015*resource_fishery(t) + 1.5, where(resource_fishery(t) < 1000.0, -0.0015*resource_fishery(t) + 1.5, 0.0))))) - capital_fishery(t)*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0)))))
fishery.capital: diff(capital_fishery(t), t) == -capital_fishery(t)/lifetime_fishery + where(capital_fishery(t)*where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.0, 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.4, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.1, -30.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.2, -20.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 9.0, -10.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 7.0)), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.8, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.6, -5.000000000000001*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 5.0, -2.499999999999999*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 3.499999999999999), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 1.0, -1.5000000000000004*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 2.7, 1.2))))*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) - cost_fishery*capital_fishery(t) < 0, 0, where(capital_fishery(t)*where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.0, 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.4, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.1, -30.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.2, -20.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 9.0, -10.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 7.0)), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.8, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.6, -5.000000000000001*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 5.0, -2.499999999999999*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 3.499999999999999), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 1.0, -1.5000000000000004*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 2.7, 1.2))))*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) - cost_fishery*capital_fishery(t) > growth_goal_fishery*capital_fishery(t), growth_goal_fishery*capital_fishery(t), capital_fishery(t)*where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.0, 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.4, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.1, -30.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 10.0, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.2, -20.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 9.0, -10.0*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 7.0)), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.8, where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 0.6, -5.000000000000001*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 5.0, -2.499999999999999*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 3.499999999999999), where(where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) < 1.0, -1.5000000000000004*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) + 2.7, 1.2))))*where(resource_fishery(t) < 0.0, 0.0, where(resource_fishery(t) < 500.0, where(resource_fishery(t) < 200.0, where(resource_fishery(t) < 100.0, 0.0001*resource_fishery(t), 0.0003*resource_fishery(t) - 0.019999999999999997), where(resource_fishery(t) < 300.0, 0.0005*resource_fishery(t) - 0.060000000000000005, where(resource_fishery(t) < 400.0, 0.0007000000000000001*resource_fishery(t) - 0.12000000000000005, 0.0009*resource_fishery(t) - 0.19999999999999998))), where(resource_fishery(t) < 800.0, where(resource_fishery(t) < 600.0, 0.0010999999999999998*resource_fishery(t) - 0.29999999999999993, where(resource_fishery(t) < 700.0, 0.0013000000000000002*resource_fishery(t) - 0.42000000000000004, 0.0015000000000000002*resource_fishery(t) - 0.5600000000000003)), where(resource_fishery(t) < 900.0, 0.0017000000000000003*resource_fishery(t) - 0.7200000000000003, where(resource_fishery(t) < 1000.0, 0.0018999999999999996*resource_fishery(t) - 0.8999999999999995, 1.0))))) - cost_fishery*capital_fishery(t)))