function p00_sol_test ( )

%*****************************************************************************80
%
%% P00_SOL_TEST tests P00_SOL.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    06 December 2016
%
%  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)\n' );
  fprintf ( 1, '\n' );

  problem_num = p00_problem_num ( );

  for problem = 1 : problem_num

    [ know, x_sol ] = p00_sol ( problem );

    if ( know == 0 )

      fprintf ( 1, '  %7d  (Minimizing solution not given)\n', problem );

    else

      f_sol = p00_f ( problem, x_sol );

      f1_sol = p00_f1 ( problem, x_sol );

      fprintf ( 1, '  %7d  %14.6g  %14.6g  %14.6g\n', problem, x_sol, f_sol, f1_sol );

    end

  end

  return
end
