Last active
April 18, 2017 01:00
-
-
Save washingtonsoares/3e136dace4d2c3f2d7a10798b5a1fa08 to your computer and use it in GitHub Desktop.
Problemas de otimizacao
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var p1; | |
var p2; | |
maximize z: 1000*p1 + 1800*p2; | |
s.t. rp1 : p1 <= 40; | |
s.t. rp2 : p2 <= 30; | |
s.t. rp3 : 20 * p1 + 30 * p2 <= 1200; | |
solve; | |
end; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x1; | |
var x2; | |
maximize z: 50 * x1 + 40 * x2; | |
s.t. rx1 : 2 * x1 + 0 * x2 <= 300; | |
s.t. rx2 : 0 * x1 + 3 * x2 <= 540; | |
s.t. rx3 : 2 * x1 + 2 * x2 <= 440; | |
s.t. rx4 : 6/5 * x1 + 3/2 * x2 <= 300; | |
solve; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment