function test_opt_test ( )

%*****************************************************************************80
%
%% test_opt_test() tests test_opt().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    30 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../test_opt' );

  timestamp (  )
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_opt_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test test_opt().\n' );

  p00_title_test ( );
  p00_n_test ( );
  p00_start_test ( );
  p00_f_test ( );
  p00_sol_test ( );
  p00_gdif_test ( );
  p00_hdif_test ( );

  gradient_method_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_opt_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp (  )

  rmpath ( '../test_opt' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

