function p00_f_test ( )

%*****************************************************************************80
%
%% P00_F_TEST tests P00_F
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    06 December 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'P00_F_TEST\n' );
  fprintf ( 1, '  P00_F evaluates the optimization function f(x)\n' );
  fprintf ( 1, '  at any point x, and for any problem.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Problem               X            F(X)\n' );
  fprintf ( 1, '\n' );

  problem_num = p00_problem_num ( );

  for problem = 1 : problem_num

    x_start = p00_start ( problem );

    f_start = p00_f ( problem, x_start );

    fprintf ( 1, '  %7d  %14.6g  %14.6g\n', problem, x_start, f_start );

  end

  return
end
