• Aucun résultat trouvé

Unrestricted Variables in LP

N/A
N/A
Protected

Academic year: 2022

Partager "Unrestricted Variables in LP"

Copied!
6
0
0

Texte intégral

(1)

Unrestricted Variables in LP

Variables

x1 – loaves of bread baked

x2 – oz. flour bought or sold (positive if bought, negative if sold) Objective:

max 30x1 −4x2

Constraints:

5 packages of yeast

x1 ≤ 5

need enough flour to bake x1 loaves

5x1 ≤ 30 +x2

Nonnegativity: x1 is nonegative, x2 is unrestricted.

Can’t just run simplex with an unrestricted variable, beacause it won’t set x2 to a negative value.

(2)

Dealing with the unrestricted variable

Idea:

Let x02 be the amount of flour bought Let x002 be the amount of flour sold

Now we can replace x2 with

x2 = x02 − x002 x02, x002 ≥ 0

Interpreting the solution: What if both x02 and x002 are positive in solution?

It can’t happen with simplex!

(3)

LP

maximize 30x1 − 4x02 + 4x002 (1) subject to

5x1 − x02 + x002 ≤ 30 (2)

x1 ≤ 5 (3)

x1 , x02 , x002 ≥ 0 (4)

Put into standard form:

z = 30x1 − 4x02 + x002 (5)

s1 = 30 − 5x1 + x02 − x002 (6)

s2 = 5 − x1 (7)

Choose x1 to enter Choose s2 to exit

(4)

Iteration 1

z = 30x1 − 4x02 + x002 (8)

s1 = 30 − 5x1 + x02 − x002 (9)

s2 = 5 − x1 (10)

Choose x1 to enter Choose s2 to exit

z = 150 − 30s2 − 4x02 + x002 (11)

s1 = 5 + 5s2 + x02 − x002 (12)

x1 = 5 − s2 (13)

Choose x002 to enter Choose s1 to exit

(5)

Iteration 2

z = 150 − 30s2 − 4x02 + x002 (14)

s1 = 5 + 5s2 + x02 − x002 (15)

x1 = 5 − s2 (16)

Choose x002 to enter Choose s1 to exit

z = 170 − 10s2 − 4s1 (17)

x002 = 5 + 5s2 + x02 − s1 (18)

x1 = 5 − s2 (19)

So we set x1 = 5 and x2 = x02 −x002 = 0−5 = −5. We bake 5 loaves and sell 5 oz. of flour. Total profit 170

(6)

General Rule

1. For each unrestricted variable xi, introduce 2 variables, x0i and x00i. 2. Use the equation xi = x0i −x00i to replace xi in the LP.

3. Add the non-negativity constraint, x0i ≥ 0 and x00i ≥ 0 4. Solve the modified LP.

5. In the final LP solution

(a) if x0i = x00i = 0 then set xi = 0.

(b) if x0i > 0 and x00i = 0, then set xi = x0i. (c) if x0i = 0 and x00i > 0, then set xi = −x00i.

Références

Documents relatifs

Attention : depuis 06.2013, unité de soupape d‘admis- sion modifiée avec tous les systèmes d‘aspiration flex.. Remplacement des paliers à glissement

Data transfer from the VAX-11' computer system is initiated under system software control in a manner compatible with procedures which operate a Digital DMF32.. The Able VMZ/lP is

CONTRE LES SURCHARGES LP MEEDD.. © Propriété Naval Group SA 2018 Tous droits réservés DIFFUSION RESTREINTE. COURANTS ADMISSIBLES ET CHOIX DES DISPOSITIFS DE PROTECTION CONTRE

Our proof combines the tensor power trick and Cram´ er’s large deviation theorem.. Keywords : L p norms; large deviation theory; tensor

That such an inequality exists is surprising because the classical sharp L p Sobolev inequality relies strongly on the Euclidean geometric structure of R n , especially on

Since (1.6) agrees with classical affine surface area for smooth convex bodies with everywhere positive curvature function (also shown in [26]), this, in turn, proves the

En procédant à l’analyse du contraste de l’image, il est possible de tracer le profil d’intensité (blanc = 0, noir = 255) dans certaines directions afin d’en déduire la

Ainsi, comme le montre la figure ci-dessus, les nœuds associés à un facteur de structure non nul forment un réseau faces centrées. ⇒ le réseau réciproque d’un réseau centré