function subset_sum_swap_tests ( )

%*****************************************************************************80
%
%% subset_sum_swap_tests() tests subset_sum_swap().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 June 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'subset_sum_swap_tests():\n' );
  fprintf ( 1, '  Calls subset_sum_swap_try() with a\n' );
  fprintf ( 1, '  particular set of weights and target.\n' );
%
%  Problem #1.
%
  n = 8;
  w = [ 15, 22, 14, 26, 32, 9, 16, 8 ];
  t = 53;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #2.
%
  n = 10;
  w = [   267,  493,  869,  961, 1000, 1153, 1246, 1598, 1766, 1922 ];
  t = 5842;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #3.
%
  n = 21;
  w = [  518533, 1037066, 2074132, 1648264, 796528, ...
        1593056,  686112, 1372224,  244448, 488896, ...
         977792, 1955584, 1411168,  322336, 644672, ...
        1289344,   78688,  157376,  314752, 629504, ...
        1259008 ];
  t = 2463098;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #4.
%
  n = 10;
  w = [ 41, 34, 21, 20,  8,  7,  7,  4,  3,  3 ];
  t = 50;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #5.
%
  n = 9;
  w = [ 81, 80, 43, 40, 30, 26, 12, 11, 9 ];
  t = 100;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #6.
%
  n = 6;
  w = [ 1, 2, 4, 8, 16, 32 ];
  t = 22;
  subset_sum_swap_try ( n, w, t );
%
%  Problem #7.
%
  n = 10;
  w = [ 25, 27, 3, 12, 6, 15, 9, 30, 21, 19 ];
  t = 50;
  r = [ 0, 2^10 - 1 ];
  subset_sum_swap_try ( n, w, t );

  return
end
