function trinity_cplex_test ( )

%*****************************************************************************80
%
%% trinity_cplex_test() tests the trinity() solution from cplex().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_cplex_test():\n' );
  fprintf ( 1, '  Examine the trinity() solution from cplex().\n' );

  label = 'trinity';
  tile_num = trinity_tile_num ( );

  filename = 'trinity_cplex.sol';
  x = cplex_solution_read ( filename );

  filename = 'trinity_cplex.png';
  solution_plot ( x, filename, label, @trinity_grid_word, @trinity_tile_num, ...
    @trinity_tile_word );

  filename = 'trinity_cplex_ij.tex';
  plot_scale = 0.5;
  solution_tikz_ij ( x, filename, @trinity_grid_word, @trinity_tile_num, ...
    @trinity_tile_word, plot_scale );

  filename = 'trinity_cplex_xy.tex';
  plot_scale = 2.0;
  solution_tikz_xy ( x, filename, @trinity_grid_word, @trinity_tile_num, ...
    @trinity_tile_word, plot_scale );

  solution_print ( x, label, tile_num, @trinity_tile_word, @trinity_grid_word );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'trinity_cplex_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

