A method for training a support vector machine to determine a present
state of charge of an electrochemical cell system includes choosing a
training data, preprocessing the training data, finding an optimal
parameter of the support vector machine, and determining support vectors.