A mathematical model is constructed for the management of a firm, A quadrat
ic criterion is developed for the efficiency of operation that represents t
he total expenses of the firm. Optimal management of the firm is obtained i
n the form of a feedback law that guarantees efficient management under a v
ariation in demand. Algorithmic software is worked out that can serve as a
basis for the construction of an automated system for the management of the
production and sales of an enterprise.