Recent content by alpha

  1. alpha

    Solving Linear Programming problems in python PulP

    Okay so far I have come up with the following: The objective function is: 30LADA + 40LAHO + 50SADA + 40SAHO + 110DANY + 125DACH + 105HONY + 115HOCH (to read this please see the table above as I have just used the first two letters of each except NY which I have represented by NY). In these I...
  2. alpha

    Optimizing Constraints for Linear Programming Problem

    The number of votes per dollar and the constraints. It doesn't crash but I am not sure the code I've posted above is correct since I've used different sources to figure it out so needed some guidance on the legibility of the code and if I am in the right direction or need drastic changes to my...
  3. alpha

    Optimizing Constraints for Linear Programming Problem

    the question was also altered by the prof so I have updated that as well. Sorry for not mentioning
  4. alpha

    Optimizing Constraints for Linear Programming Problem

    Hi so I have to change my set up onto spyder using PuLP. Not sure if that is a better option since I have never used it before. I think I have done it right on PuLp but I am not sure to be honest. Here is my code. # -*- coding: utf-8 -*- """" Created on Sun Oct 23 21:03:47 2022 Votes problem...
  5. alpha

    Optimizing Constraints for Linear Programming Problem

    Hi so turns out I have to do this on spyder using PuLP not excel solver, so looks like I need to get that set up ready.
  6. alpha

    Optimizing Constraints for Linear Programming Problem

    Im trying to compare my notes but nothings going into be honest. I am going to sleep on it and try again tomorrow and let you know how it goes. Thank you for your input so far :)
  7. alpha

    Optimizing Constraints for Linear Programming Problem

    Hi sorry about that the voets are 0.01** not 0.1
  8. alpha

    Optimizing Constraints for Linear Programming Problem

    Hi, so I've been using sumproduct and individually mapping out all of the constraints on it using >= or <= depending on the constraint. I tried running this through wolfram alpha linear programming to see if my constraints are the problem, but it didnt work there either. I don't understand how...
  9. alpha

    Optimizing Constraints for Linear Programming Problem

    So far I have figured out the following: maximize 0.02x1 + 0.01x2 +0.06x3 + 0.07x4 subject to: xi <= 200,000 xi >= 24,000 x3 <= x2 +x4 x1 >= x3 But when I try to solve this in solver, I get an error which means my contraints must be wrong. Any suggestions on what constaints to put?
Back
Top