This paper considers an optimization problem with a linear objective function under the constraints expressed by a system of fuzzy relation equations using max-as (Algebraic Sum) composition. First, some properties of minimal solutions of the system with fuzzy relation equations and max-as composition are shown. Then, a new algorithm for solving the optimization problem is derived. The numerical examples have been provided to illustrate the theoretical results.