I am new to Linear Programming. The general two-variable problems I see have the objective function as maximizing profit.
However, what if there is a cost per unit of each variable?
Example: I have two resources A and B, that are both used in different amounts to produce X and Y, and I make \$5 for each X and \$9 for each Y. But each time unit of A takes \$2 and B takes \$1. Also, there are 10 time units each available of A and B.
My doubt is that, is my objective function simply
Max : P = 5X + 9Y
or is it some function that takes into account the cost of resources A and B spent?
For example,
Max: P = 3X + 7.5Y (Assuming X costs \$2 and Y costs \$1.5