|
...
Solution using 2LP
2lp_main() {
continuous wA, gA, wB, gB, wC, gC;
6*wA + 2*gA <= 100;
3*wB + 4*gB <= 80;
1*wC + 2*gC <= 160;
max: 5*(wA+wB+wC) + 4*(gA+gB+gC);
printf("Max profit %. ...
Since the 2LP system has the simplex-based search mechanism of linear programming built in, so all we need to do in the program is to define the parameters and constraints. ...
Solution using 2LP
2lp_main() {
continuous wA, gA, wB, gB, wC, gC;
6*wA + 2*gA <= 100;
3*wB + 4*gB <= 80;
1*wC + 2*gC <= 160;
max: 5*(wA+wB+wC) + 4*(gA+gB+gC);
printf("Max profit %.
Approximate Word count = 496 Approximate Pages = 2 (250 words per page double spaced)
|
|