moscot.base.problems.CondOTProblem.solve¶
- CondOTProblem.solve(backend='ott', solver_name='GENOTLinSolver', device=None, **kwargs)[source]¶
Solve optimal transport problem.
- Parameters:
backend (
Literal
['ott'
]) – Which backend to use, seemoscot.backends.utils.get_available_backends()
.solver_name (
Literal
['GENOTLinSolver'
]) – The description is missing.device (
Union
[Literal
['cpu'
,'gpu'
,'tpu'
],str
,None
]) – Device where to transfer the solution, seemoscot.base.output.BaseDiscreteSolverOutput.to()
.**kwargs (
Any
) – The description is missing.
- Return type:
- Returns:
: Self and modifies the following attributes: -
solver
: optimal transport solver. -solution
: optimal transport solution.