InversePoisson2DSquareProblem#

Formulation of the inverse Poisson problem in a square domain.

class InversePoisson2DSquareProblem(load=True, data_size=1.0)[source]#

Bases: SpatialProblem, InverseProblem

Implementation of the inverse 2-dimensional Poisson problem in the square domain \([0, 1] \times [0, 1]\), with unknown parameter domain \([-1, 1] \times [-1, 1]\). The "data" condition is added only if the required files are downloaded successfully.

Example:
>>> problem = InversePoisson2DSquareProblem()

Initialization of the InversePoisson2DSquareProblem.

Parameters:
  • load (bool) – If True, it attempts to load data from remote URLs. Set to False to skip data loading (e.g., if no internet connection).

  • data_size (float) – The fraction of the total data to use for the “data” condition. If set to 1.0, all available data is used. If set to 0.0, no data is used. Default is 1.0.

Raises:
  • ValueError – If data_size is not in the range [0.0, 1.0].

  • ValueError – If data_size is not a float.