main.py 875 B

1234567891011121314151617181920212223242526272829
  1. from solver import solver
  2. if __name__ == '__main__':
  3. # solver( seq='3*x1 + 4*x2',
  4. # data=['4*x1 + x2 <= 8',
  5. # 'x1 >= 0',
  6. # 'x1 - x2 >= -3',
  7. # 'x2 >= 0'], ndims=2, step=0.1, count=10).show()
  8. # solver( seq='3*x1 + 2*x2',
  9. # data=['2*x1 + 3*x2 <= 6',
  10. # 'x1 <= 2', 'x1 >= 0',
  11. # '2*x1 - x2 >= 0',
  12. # 'x2 >= 0', 'x2 <= 1'], ndims=2).show()
  13. # solver( seq='x1 + 3*x2',
  14. # data=['2*x1 + 3*x2 <= 24',
  15. # 'x1 >= 0',
  16. # 'x1 - x2 <= 7',
  17. # 'x2 >= 0', 'x2 <= 6'], ndims=2, step=0.1, count=25).show()
  18. # solver( seq='x1 - 1.1*x2 + 7.4',
  19. # data=['x1 >= 0',
  20. # 'x2 >= 0',
  21. # 'x1 + x2 <= 10',
  22. # '10 - x1 >= 0', '10 - x2 >= 0'], ndims=2, step=0.1, count=15).show()
  23. pass