Guest User

Untitled

a guest
Jan 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. c=[0.9,0.25,0.,1.25,4.5,0]
  2. AUB=[[0.99,0.001,0.043,0,0,0.033],[0,0.001,0.01,0.7,0,0.0195],
  3. [0,0,0,0,0.99,0.006]]
  4. AEQ=[[0.99,0.001,0.043,0,0,0.0315],[0,0.001,0.001,0.7,0,0.016],
  5. [0,0,0,0,0.99,0.004]]
  6. BUB=[3.2,1.85,0.5]
  7. BEQ=[2.9,1.5,0.35]
  8.  
  9.  
  10. res=linprog(c,A_ub=AUB,b_ub=BUB,A_eq=AEQ,b_eq=BEQ,options={"disp":True})
  11.  
  12. res=linprog(c,A_eq=AEQ,b_eq=BEQ,options={"disp":True})
Add Comment
Please, Sign In to add comment