Also note that for a positive profit level in the CF, wages of workers in such firms are inferior to the revenues of workers in a LMF; the two types of income are only equal when the CF makes zero profit.
In the long run, the stock of capital is also variable. The condition for optimality is identical for CF and LMF: