function cplex_solution_plot_test ( filename )

%*****************************************************************************80
%
%% cplex_solution_plot_test() tests cplex_solution_plot().
%
%  Discussion:
%
%    The solution file should have been generated by CPLEX, based on an
%    LP file created by trinity_lp_automatic.m.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 May 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    character FILENAME: the name of the CPLEX SOL file containing the
%    solution information.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cplex_solution_plot_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  cplex_solution_plot() plots a trinity tiling solution\n' );
  fprintf ( 1, '  generated by the cplex() optimization package.\n' );
%
%  Extract the solution data.
%
  filename = 'trinity_automatic.sol';
  x = cplex_solution_read ( filename );
%
%  Request a plot.
%
  cplex_solution_plot ( x );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cplex_solution_plot_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
