A classifier system is used to learn control and profit optimization of a batch chemical reaction. Ability to learn different market conditions and changes to reaction parameters is demonstrated. The profit sharing algorithm is used for apportionment of credit. The greater effectiveness of the use of the genetic algorithm over apportionment of credit alone or the random replacement of low strength rules is also shown. The classifier system is unusual in having more than one action per rule.