  The Electron-Ion-Collider (EIC) will be a next-generation facility located at
Brookhaven National Laboratory (BNL), built with the goal of accelerating heavy
ions up to 275 GeV. To prevent ion beam size growth during the acceleration
phase, cooling techniques will be required to keep the beam size from growing
due to intra-beam scattering. The JSPEC (JLab Simulation Package for Electron
Cooling) $\texttt{C++}$ package is a tool designed to numerically model
magnetized and unmagnetized cooling through friction forces between
co-propagating electron and ion bunches.
  Here we describe a feature that has been added to the JSPEC package, which
implements a Nelder-Mead Simplex optimization algorithm to allow a user to
optimize certain beam parameters in order to achieve a target cooling time.
