class_docstr: Unit test class for general utilities. 
class_docstr_tok: ["Unit","test","class","for","general","utilities","."]
docstr: Test direct optmisation.
docstr_tok: ["Test","direct","optmisation","."]
code: def test_random_optimise(self):
      """Test direct optmisation."""
      self.report("Rand optimise:")
      random_minimise = (
          lambda obj, bounds, max_evals: oper_utils.random_minimise(
              obj, bounds, max_evals, False, False
          )
      )
      random_maximise = (
          lambda obj, bounds, max_evals: oper_utils.random_maximise(
              obj, bounds, max_evals, False, False
          )
      )
      self._test_optimise_method(
          random_minimise, random_maximise, False
      )
  
imports: from __future__ import absolute_import
  import os
  import time
  from argparse import Namespace
  import numpy
  from .ancillary_utils import is_nondecreasing
  from .base_test_class import BaseTestClass, execute_tests
  from .euclidean_synthetic_functions import get_mf_hartmann_function_data
  from .None import oper_utils
label_desc: Use image node_id 5 for calling the OptimisersTestCase obj's underlying member method code with example usage: obj.test_random_optimise() without return types