from abc import ABCMeta, abstractmethod


class Cost(object):
    __metaclass__ = ABCMeta

    @abstractmethod
    def lagr(self, x):
        """Running cost function (Lagrangian)

        :param x: state
        :return: running cost
        """
        return

    @abstractmethod
    def phi(self, x):
        """Terminal cost function

        :param x: state
        :return: terminal cost for state x
        """
        return

58cfa50ea0489ac8aec88cbc4052f93a4ca46321
<mask token>


class Cost(object):
    <mask token>

    @abstractmethod
    def lagr(self, x):
        """Running cost function (Lagrangian)

        :param x: state
        :return: running cost
        """
        return
    <mask token>

<mask token>


class Cost(object):
    <mask token>

    @abstractmethod
    def lagr(self, x):
        """Running cost function (Lagrangian)

        :param x: state
        :return: running cost
        """
        return

    @abstractmethod
    def phi(self, x):
        """Terminal cost function

        :param x: state
        :return: terminal cost for state x
        """
        return

<mask token>


class Cost(object):
    __metaclass__ = ABCMeta

    @abstractmethod
    def lagr(self, x):
        """Running cost function (Lagrangian)

        :param x: state
        :return: running cost
        """
        return

    @abstractmethod
    def phi(self, x):
        """Terminal cost function

        :param x: state
        :return: terminal cost for state x
        """
        return

from abc import ABCMeta, abstractmethod


class Cost(object):
    __metaclass__ = ABCMeta

    @abstractmethod
    def lagr(self, x):
        """Running cost function (Lagrangian)

        :param x: state
        :return: running cost
        """
        return

    @abstractmethod
    def phi(self, x):
        """Terminal cost function

        :param x: state
        :return: terminal cost for state x
        """
        return
