docstr: Tests the use of optimal trajectories with Morris.
  
  Uses brute force approach
  
  Note that the relative tolerance is set to a very high value
  (default is 1e-05) due to the coarse nature of the num_levels.
docstr_tok: ["Tests","the","use","of","optimal","trajectories","with","Morris",".","Uses","brute","force","approach","Note","that","the","relative","tolerance","is","set","to","a","very","high","value","(","default","is","1e-05",")","due","to","the","coarse","nature","of","the","num_levels","."]
code: def test_regression_morris_optimal(self, set_seed):
      """
      Tests the use of optimal trajectories with Morris.
  
      Uses brute force approach
  
      Note that the relative tolerance is set to a very high value
      (default is 1e-05) due to the coarse nature of the num_levels.
      """
      set_seed
      param_file = "src/SALib/test_functions/params/Ishigami.txt"
      problem = read_param_file(param_file)
      param_values = morris_sampler(
          problem=problem,
          N=20,
          num_levels=4,
          optimal_trajectories=9,
          local_optimization=True,
      )
  
      Y = Ishigami.evaluate(param_values)
  
      Si = morris.analyze(
          problem,
          param_values,
          Y,
          conf_level=0.95,
          print_to_console=False,
          num_levels=4,
      )
  
      assert_allclose(
          Si["mu_star"],
          [9.786986e00, 7.875000e00, 1.388621],
          atol=0,
          rtol=1e-5,
      )
  
imports: from pytest import fixture, mark
  import numpy
  from numpy.testing import assert_allclose
  from SALib.analyze import delta, dgsm, fast, rbd_fast, sobol, morris, hdmr
  from SALib.sample import fast_sampler, finite_diff, latin, saltelli
  from SALib.sample.morris import sample
  from SALib.test_functions import Ishigami
  from SALib.test_functions import linear_model_1
  from SALib.test_functions import linear_model_2
  from SALib.util import read_param_file
label_desc: Use image node_id 6 for calling the TestMorris obj's underlying member method code with example usage: obj.test_regression_morris_optimal(set_seed) without return types