moscot.base.problems.BaseCompoundProblem.solve

BaseCompoundProblem.solve(stage=('prepared', 'solved'), **kwargs)[source]

Solve the individual OT subproblems.

Parameters:
  • stage (Union[Literal['prepared', 'solved'], Tuple[Literal['prepared', 'solved'], ...]]) – Stage by which to filter the problems to be solved.

  • kwargs (Any) – Keyword arguments for the subproblems’ solve() method.

Return type:

BaseCompoundProblem[TypeVar(K, bound= Hashable), TypeVar(B, bound= OTProblem)]

Returns:

: Returns self and updates the following fields: