Current location - Training Enrollment Network - Mathematics courses - I have a mathematical modeling method.
I have a mathematical modeling method.
Yes, your question is relatively simple, and I didn't use set to do it. The code is as follows.

min = 10 * t 1 * p 1+9.9 * T2 * p2+9.8 * T3 * P3+ 1 1.3 * T4 * P4;

p2+P3 = 1;

p 1 = 1;

p2 = 1;

@bnd(2,t 1,6);

@bnd(2,t2,8);

@bnd(2,t3,5);

@bnd(2,t4,6);

@ bin(p 1);

@ bin(p2);

@ bin(P3);

@ bin(P4);

The result is 39.8, where T 1 = T2 = T3 = T4 = 2, P 1 = P2 = 1, P3 = P4 = 0.