function trinity_solution_test ( )

%*****************************************************************************80
%
%% trinity_solution_test() tests trinity_solution().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../eternity' );
  addpath ( '../trinity' );
  addpath ( '../trinity_solution' );

  pkg load io

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_solution_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  Test trinity_solution().\n' );

  filename = 'trinity_automatic.sol';
  cplex_solution_read_test ( filename );

  filename = 'trinity_automatic.sol';
  cplex_solution_plot_test ( filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_solution_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../eternity' );
  rmpath ( '../trinity' );
  rmpath ( '../trinity_solution' );

  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

