0EPII1 All American 42541 Posts user info edit post |
I have been trying to do this for some time now, and I have set it up, but it doesn't work when I solve it using Excel Solver. Can someone please set it up (objective fxn and contraints)?
Problem:
Winston saving has $20 million available for investment. It wishes to invest over the next four months in such way that will maximize the total interest as well as have at least $10,000,000 available at the start of month 5 for a high rise building.
For the time being, Winston wishes to invest only in 2-month government bonds, (earning 2% over the 2-month period), and 3-month construction loans (earning 6% over the 3-month period). Each of these is available each month for investment. Funds not invested in these two investments are liquid and earn 0.75% per month when invested locally.
Also, no more than $8,000,000 should be invested in government bonds at any time. And, no more than $8,000,000 should be invested in construction loans at any time.
This is my setup:
Define Variables Gj: Amount invested in Government Bonds (GB) in month j, where j = 1,2,3,4 Cj: Amount invested in Construction Loans (CL) in month j, where j = 1,2,3,4 Lj: Amount invested in Local Investments (LI) in month j, where j = 1,2,3,4
Objective function
Maximize 0.02G1 + 0.02G2 + 0.02G3 + 0.02G4 + 0.06C1 + 0.06C2 + 0.06C3 + 0.06C4 + 0.0075L1 + 0.0075L2 + 0.0075L3 + 0.0075L4
Monthly Constraints
Month 1: G1 + C1 + L1 <= 20,000,000 Month 2: G2 + C2 + L2 <= 1.0075L1 Month 3: G3 + C3 + L3 <= 1.02G1 + 1.0075L2 Month 4: G4 + C4 + L4 <= 1.06C1 + 1.02G2 + 1.0075L3 Month 5: 1.06C2 + 1.02G3 + 1.0075L4 >= 10,000,000
GB Contraints
Month 1: G1 <= 8,000,000 Month 2: G1 + G2 <= 8,000,000 Month 3: G2 + G3 <= 8,000,000 Month 4: G3 + G4 <= 8,000,000
CL Contraints
Month 1: C1 <= 8,000,000 Month 2: C1 + C2 <= 8,000,000 Month 3: C1 + C2 + C3 <= 8,000,000 Month 4: C2 + C3 + C4 <= 8,000,000
This gives no solution.
Then I realized that GBs have to be invested for 2 months, and all investments should be finished (?) by the end of 4 months, which means that no money can be invested in GBs in month 4. Similarly, CLs have to invested for 3 months, which means no money can be invested in CLs for months 3 and 4.
So I re-formulated the problem accordingly (removed G4, C3, and C4 from the constraints and the objective function, i.e., removed them from the problem), but still no solution.
This means there is something wrong with the constraints (inequalities) that I have setup
Can anybody help?
Thanks
[Edited on December 28, 2008 at 3:10 PM. Reason : ]12/28/2008 3:05:31 PM |
0EPII1 All American 42541 Posts user info edit post |
I am not interested in any advanced methods for solving it.
I am talking about setting up the problem, i.e., making the contraints.
And even if you use Matlab or some powerful program to solve this, you STILL need to set it up first.
So, which model is correct? With G4, C3, and C4, or without? 12/30/2008 6:37:49 AM |