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 dolfin.cpp.la. OptimisationProblem

Thank you
Manish

In DOLFINx, we leverage the python interface of PETSc, namely petsc4py, which has a petsctao interface: https://petsc.org/release/docs/manual/manual.pdf

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

2 Likes

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