Overview#
Core objective framework including base classes.
Base Classes#
- class biosym.objectives.base_objective.BaseObjective(model, settings)#
Bases:
ABCAbstract base class for objectives in the biosym package. All objectives should inherit from this class and implement the required methods.
- abstractmethod get_gradient(*args, **kwargs)#
Compute the gradient of the objective function.
- Parameters:
args – Positional arguments for gradient computation.
kwargs – Keyword arguments for gradient computation.
- Returns:
The gradient of the objective function.
- abstractmethod get_objfun(*args, **kwargs)#
Evaluate the objective function.
- Parameters:
args – Positional arguments for evaluation.
kwargs – Keyword arguments for evaluation.
- Returns:
The evaluated value of the objective function.