%
  function val = mayer(x_final)
%
% Evaluate the Mayer cost functional
%
  val = -x_final(1);
%
% return
%
