function t_gurobi_test ( grid_index )

%*****************************************************************************80
%
%% t_gurobi_test() tests the t_puzzle() solution from gurobi().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 January 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer GRID_INDEX: specifies the grid.
%    1: t
%    2: arrow
%    3: rhombus
%    4: fatarrow
%
  [ name1, name2 ] = t_grid_name ( grid_index );

  fprintf ( 1, '\n' );
  fprintf ( 1, 't_gurobi_test():\n' );
  fprintf ( 1, '  Examine a %s solution from gurobi().\n', name2 );

  filename = sprintf ( '%s_gurobi.sol', name2 );
  x = gurobi_solution_read ( filename );

  filename = sprintf ( '%s_gurobi.png', name2 );
  label = sprintf ( '%s gurobi solution', name1 );
  t_solution_plot ( x, filename, label, @t_grid_word, grid_index, @t_tile_num, ...
    @t_tile_word );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_gurobi_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

