'''
The simplexLib library is a LP-library that can easily load UB, LB
and EQ constraints, convert the solution to standard from, and solve
by the SIMPLEX algorithm
'''
import simplexLib as LP
p_A = 2200
p_A_low = 2000
p_B = 1900
rho_A1 = 7
rho_A2 = 5
rho_B1 = 5
rho_B2 = 7
mu_A = 1.2
mu_B = 1
c_1 = 50
c_2 = 100
c_MHR = 750
  
# Constraints:   
MHR = 150
VR_B = 30
L_2 = 700


LP.coefficients([p_A-rho_A1*c_1-rho_A2*c_2-mu_A*c_MHR, \
              p_B-rho_B1*c_1-rho_B2*c_2-mu_B*c_MHR])
LP.upperBound(MHR,[1.2,1])
LP.upperBound(L_2,[5,7])
LP.lowerBound(VR_B,[0,1])
LP.printProblem()
detailed = 2
LP.SIMPLEX(detailed)
