Current location - Training Enrollment Network - Mathematics courses - Mathematical modeling temporary storage yard
Mathematical modeling temporary storage yard
Supply exceeds demand jargon:

sets:supply/ 1.2/:d; Demand/1... 6/:x, y, m; (x,y); endsetsdata:x = 1.258 . 750 . 55 . 7537.25; y = 1.250 . 754 . 7556 . 57 . 25; m = 35476 1 1; enddatamin=@sum(demand(i):((x-5)^2+(y- 1)^2)^ .......

[OBJ]min=@sum(links(i,j):c(i,j)*x(i,j));

@ for(demand(I):@ for(supply(j):c(I,j)=((px(j)-pa(i))^2+(py(j)-pb(i))^2)^( 1/2));

@for (demand (i):@sum (supply (j):x(i, j)) = d (i));

@ for(supply(I):@ sum(demand(j):x(j,I))& lt; = e(I));

@for(supply:@bnd(0 .5, pixel, 8 .75); @bnd(0 .75,py,7 .75); );

end

usually

Using LINGO to solve operational research problems can be divided into the following two steps:

1. Establish a mathematical model according to practical problems, that is, establish an optimization model by using mathematical modeling;

2. According to the optimized model, LINGO is used to solve the model. Mainly according to LINGO software, the mathematical model is translated into computer language and solved by computer.

Example: application in linear programming max Z =5 X 1+3 X2+6X3,

Standard time X 1 +2 X2+X3 ≤ 18

2 X 1 + X2 +3 X3 = 16

X 1 + X2 + X3 = 10

X 1, X2 ≥0, X3 is free variables.

Baidu Encyclopedia-jargon