**objAndCons** ====================================== .. py:module:: optimeed.optimize.objAndCons .. toctree:: :titlesonly: :maxdepth: 1 fastObjCons/index.rst interfaceObjCons/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: optimeed.optimize.objAndCons.FastObjCons optimeed.optimize.objAndCons.InterfaceObjCons .. py:class:: FastObjCons(constraintEquation, name=None) Bases: :py:obj:`optimeed.optimize.objAndCons.interfaceObjCons.InterfaceObjCons` Convenience class to create an objective or a constraint very fast. .. py:method:: compute(theDevice) Get the value of the objective or the constraint. The objective is to MINIMIZE and the constraint has to respect VALUE <= 0 :param theDevice: Input device that has already been evaluated :return: float. .. py:method:: get_name() .. py:class:: InterfaceObjCons Interface class for objectives and constraints. The objective is to MINIMIZE and the constraint has to respect VALUE <= 0 .. py:method:: compute(theDevice) :abstractmethod: Get the value of the objective or the constraint. The objective is to MINIMIZE and the constraint has to respect VALUE <= 0 :param theDevice: Input device that has already been evaluated :return: float. .. py:method:: get_name() .. py:method:: __str__() Return str(self).