function boat_test ( )

%*****************************************************************************80
%
%% boat_test() tests boat().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 February 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../eternity' );
  addpath ( '../boat' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boat_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  boat() implements a linear programming\n' );
  fprintf ( 1, '  approach to the boat tiling problem.\n' );

  label = 'boat';
  tile_num = boat_tile_num ( );

  lp_generate ( label, tile_num, @boat_tile_word, @boat_grid_word );

  boat_cplex_test ( );
  boat_gurobi_test ( );

  if ( false )
    solution_print ( x, label, tile_num, @boat_tile_word, @boat_grid_word );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boat_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../boat' );
  rmpath ( '../eternity' );

  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

