Hello,

I would like to maximize my function of a specific segment, let's say [a,b]. Does anyone know how to do this in mata?

Best regards,
Olga