function p00_sol_test ( )

%*****************************************************************************80
%
%% p00_sol_test() tests p00_sol().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    07 August 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'p00_sol_test\n' );
  fprintf ( 1, '  p00_sol returns a minimizer for the optimization function f(x)\n' );
  fprintf ( 1, '  for any problem.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Problem               X            F(X)          F''(X)          F"(X)\n' );
  fprintf ( 1, '\n' );

  problem_num = p00_problem_num ( );

  for problem = 1 : problem_num

    x = p00_sol ( problem );

    fx = p00_f ( problem, x );

    f1x = p00_f1 ( problem, x );

    f2x = p00_f2 ( problem, x );

    fprintf ( 1, '  %7d  %14.6g  %14.6g  %14.6g  %14.6g\n', problem, x, fx, f1x, f2x );

  end

  return
end
