TimeDependentProblem#

Module for the TimeDependentProblem class.

class TimeDependentProblem[source]#

Bases: BaseProblem

Base class for all time-dependent problems, extending the standard problem definition with time-dependent inputs.

A time-dependent problem is defined over a temporal domain, where input variables represent the time at which the solution is evaluated.

This class is not meant to be instantiated directly.

Example:
>>> from pina.problem import TimeDependentProblem
>>> from pina.domain import CartesianDomain
>>> class MyTimeProblem(TimeDependentProblem):
...     @property
...     def temporal_domain(self):
...         return CartesianDomain({"t": [0.0, 1.0]})
...     @property
...     def conditions(self): return {}
>>> problem = MyTimeProblem()
>>> problem.temporal_variables
['t']

Initialization of the BaseProblem class.

abstract property temporal_domain#

The domain of temporal variables of the problem.

property temporal_variables#

The temporal variables of the problem.

Returns:

The temporal variables of the problem.

Return type:

list[str]