1
Fork 0
mirror of https://github.com/Steffo99/appunti-magistrali.git synced 2024-11-30 13:34:17 +00:00
appunti-steffo/4 - Ottimizzazione lineare intera/1 - Esercizi svolti/Dispense - Esercizio 2.mod

14 lines
184 B
Modula-2
Raw Permalink Normal View History

2024-06-04 06:16:15 +00:00
var w >= 0;
var x >= 0;
var y >= 0;
var z >= 0;
maximize sol: 3*w - 2*x + z;
c1: w - x + 3*y >= 8;
c2: 4*x + 5*z <= 12;
c3: 3*w - 4*y + z >= 15;
solve;
display sol, w, x, y, z;
end;