Owning this in your mind, the following phase is to create the constraints and goal functionality in addition to to assign them to the design. You don’t want to produce lists or matrices. Just generate Python expressions and make use of the += operator to append them for the product: https://ricardoqbozt.blogsidea.com/34385720/considerations-to-know-about-help-with-linear-programming-assignment