Code a function that takes all input for a problem + a Mayer-type objective and returns the problem in Lagrange form.
GridapPDENLPModel(xin, f, trian, Y, X, op_sis, name = "Mayer")
where f is a function of two inputs tf and x(tf).
The transformation adds an unknown function + a "boundary" condition at the final time.
Code a function that takes all input for a problem + a Mayer-type objective and returns the problem in Lagrange form.
where
fis a function of two inputstfandx(tf).The transformation adds an unknown function + a "boundary" condition at the final time.