from solver import solver if __name__ == '__main__': # solver( seq='3*x1 + 4*x2', # data=['4*x1 + x2 <= 8', # 'x1 >= 0', # 'x1 - x2 >= -3', # 'x2 >= 0'], ndims=2, step=0.1, count=10).show() # solver( seq='3*x1 + 2*x2', # data=['2*x1 + 3*x2 <= 6', # 'x1 <= 2', 'x1 >= 0', # '2*x1 - x2 >= 0', # 'x2 >= 0', 'x2 <= 1'], ndims=2).show() # solver( seq='x1 + 3*x2', # data=['2*x1 + 3*x2 <= 24', # 'x1 >= 0', # 'x1 - x2 <= 7', # 'x2 >= 0', 'x2 <= 6'], ndims=2, step=0.1, count=25).show() # solver( seq='x1 - 1.1*x2 + 7.4', # data=['x1 >= 0', # 'x2 >= 0', # 'x1 + x2 <= 10', # '10 - x1 >= 0', '10 - x2 >= 0'], ndims=2, step=0.1, count=15).show() pass