PETScTAOSolver and class OptimisationProblem in Dolfinx?

I am using PETScTAOSolver to solve the bounded solution problem along with OptimisationProblem class.
is OptimisationProblem class still a part of dolfinx?
in Dolfin: is was class OptimisationProblem

Thank you

In DOLFINx, we leverage the python interface of PETSc, namely petsc4py, which has a petsctao interface:

It should be quite similar as to how to define a SNES solver with DOLFINx, as done in:


Thank you for your response. I think this approach can help me to solve the problem with PETSCTAOSolver also.