class_docstr: Team Pursuit Track Cycling Simulator.
  
  Parameters
  ----------
  strategy: int
      Refers to Transition strategy or Pacing strategy (or both) of the cyclists; this depends on the strategy length.
      Strategy length can only be 30, 31, 61, 22, 23, 45.
      30: mens transition strategy.
      31: mens pacing strategy.
      61: mens transition and pacing strategy combined.
      22: womens transition strategy.
      23: womens pacing strategy.
      45: womens transition and pacing strategy combined.
code: def __init__(self, strategy_index: int = 30) -> None:
      # Preliminary stuff.
      women = strategy_index in [22, 23, 45]
      param_transition = p.TransitionChoice(
          [False, True], repetitions=22 if women else 30
      )
      init = (400 if women else 550) * np.ones(23 if women else 31)
      gender = "Women" if women else "Men"
      param_pacing = p.Array(init=init, lower=200, upper=1200)
      target_function = team_pursuit_simulation
  
      # optimising transition strategy
      if strategy_index in (22, 30):
          parameter: tp.Any = param_transition
          parameter.set_name(f"{gender} Transition strategy")
          parameter.set_name("")
  
      # optimising pacing strategy
      elif strategy_index in (23, 31):
          init = 550 * np.ones(strategy_index)
          parameter = param_pacing
          parameter.set_name(f"{gender} Pacing strategy")
          parameter.set_name("")
  
      # optimising pacing and transition strategies
      elif strategy_index in (45, 61):
          init = 0.5 * np.ones(strategy_index)  # type: ignore
          parameter = p.Instrumentation(
              transition=param_transition, pacing=param_pacing
          )
          parameter.set_name(f"{gender} Pacing and Transition")
          # For some reason the name above does not work...
          # It generates a very long name like
          # "(Wom|M)ens Pacing and Transition:[0.5,...
          parameter.set_name("")
  
      # error raised if invalid strategy length given
      else:
          raise ValueError(
              "Strategy length must be any of 22, 23, 30, 31, 45, 61"
          )
      super().__init__(target_function, parameter)
  
file_path: nevergrad/nevergrad/functions/cycling/cycling.py
imports: import numpy
  import typing
  from ..None import base
  from nevergrad.parametrization import parameter
  from .womensteampursuit import womensteampursuit
  from .mensteampursuit import mensteampursuit
label_desc: Use image node_id 1 to create a new Cycling object from inherited base classes: base with example: obj = Cycling(strategy_index)