The structure of this problem is similar (not equal) to other problems that admits simple solutions. Maybe, the colleagues of this community could help me in identifying a solution to this problem.
It appears to be quite related to the generalized assignment problem, GAP (or, capacitated assignment problem, as it may be called): you have assignment constraints, and in fact two capacity constraints, whereas GAP has only one. On the other hand your objective function is simpler in that you have common constant in one of the dimensions. It still appears to me that you have a problem that is more complicated than the GAP.
Dear Mr. Patriksson, thank you for the help. I have updated the figure with the optimization problem with some properties of the constants of the problem that may help in answering my question.
While the value of a_m grows with m, making higher indices m be better than lower ones in terms of objective value, the same is true for how much capacity is used, so there does not appear to be anything directly useful in that information. (Had it been the other way around there might have been some greedy procedure one might be able to use in order to reduce the number of active variables.) As fas as I can see, after two minutes :-), there does not seem to be a favorable structure here. But another five minutes, maybe.
How big problems do you want to solve? Do you somehow want to learn about some relationships among the variables in an optimal solution, as functions of the constants? I do not think that is possible.