+ Reply to Thread
Results 1 to 5 of 5

Using solver with constraints

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Using solver with constraints

    Hi there. I'm trying to create an investment portfolio using the following constraints

    Security Returns
    A B C D E
    11% 18% 11% 17% 18%

    I have $500 000 to invest subject to the following constraints:
    The Total amount invested in A, B and C must be less than or equal to $100 000
    D must Exceed C by at least $50 000
    E must be 1.5 times D
    At least $50 000 must be invested in A
    No share must be more than half the total portfolio
    There is no short selling

    Given the above constraints, I need to find out how much is to be invested in A, B, C,D and E.

    Any help on this would be tremendously appreciated.
    Last edited by Hadoushi; 03-12-2013 at 09:33 AM.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Using solver with constraints

    Perhaps like this?

    Alf
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Using solver with constraints

    Hi Alf. Thanks for your response.

    I'm not certain if that is correct though since the constraints are applied after solver has solved everything, not before. This leads to a sum less than 500 000 when adding everything.

    Also, there is no 'shorting', not that anything was less than 0 in your submission.

    I've attached my own.
    Attached Files Attached Files

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Using solver with constraints

    since the constraints are applied after solver has solved everything, not before.
    Not sure what you mean by that. What you asked for and got was how to split up an investment according to a number of constraints. Personally I would have thought the aim was to maximize profit by buying shares according to given constraints.

    Alf
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Using solver with constraints

    Thanks again Alf. Sorry if I'm coming across as unclear. I am still trying to master excel.

    I'm just confused as to why I had so many constraints in my solver...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1