+ Reply to Thread
Results 1 to 5 of 5

GRG solver cannot set up nonlinear problem

  1. #1
    Registered User
    Join Date
    11-09-2019
    Location
    hong kong
    MS-Off Ver
    office 365
    Posts
    3

    GRG solver cannot set up nonlinear problem

    Problem 2: I need to find the barrels of oil to extract in Year 1 and 2 in order to maximise profit. The formula of sales and cost are given as well as the constraints. The cost is nonlinear. This is a really simple model but excel wouldn't even set up the GRG. Can someone please let me know what the error is?

    Problem 3: I need to find the advertising expenses in order to maximise the average market share in 12 months. The customer inflow is nonlinear. Again, I ran GRG and the error message "Invalid property" showed up. Can someone please help fix the model?

    I have made so many attempts and I don't know what's wrong. I am really desperate at this point. Please kindly help, internet.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-10-2019
    Location
    Pakistan
    MS-Off Ver
    Office365
    Posts
    1

    Re: GRG solver cannot set up nonlinear problem

    Try replacing profit with cell reference $D$8 in your objective function and then run solver. Also make sure that you have clicked the non-negative value option so that your barrels don't turn negative. There may be an issue with your range reference. I made the change and the model ran.

  3. #3
    Valued Forum Contributor Hydraulics's Avatar
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    372

    Re: GRG solver cannot set up nonlinear problem

    In the first model, I guess the sales formula in B6 should be

    =80*B5

    rather than 80-B5. Morever, as RiskTrainer wrote, your objective cell should be D8.

    With this setup, and adding an int condition on the number of barrels (not really required), the maximum profit is 914.


    The error message in the second model comes from the option "Require Bounds on Variables" that has been set in the dialog for the Evolutionary Engine.
    Even if you later change your mind and switch back to GRG or Simplex, Solver will remember it and warn you that you have not defined upper and lower boundaries for all your variables.
    Just uncheck it and the model will run fine (even though I don't know if the result makes sense).

    HTH,

    Francesco
    Attached Files Attached Files
    Aim high or don't even try.
    ---------------------------------
    If your question has been answered, don't forget to mark the thread as SOLVED.
    If you find an answer helpful, click on the star icon at the bottom of the post.

  4. #4
    Registered User
    Join Date
    11-09-2019
    Location
    hong kong
    MS-Off Ver
    office 365
    Posts
    3

    Re: GRG solver cannot set up nonlinear problem

    Thanks for the advise!!!!

  5. #5
    Registered User
    Join Date
    11-09-2019
    Location
    hong kong
    MS-Off Ver
    office 365
    Posts
    3

    Re: GRG solver cannot set up nonlinear problem

    THANK YOU SO MUCH for the big help!!! You saved my life!!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Helped Needed: Linear/nonlinear Optimization with Solver
    By TomBurton_021978 in forum Excel General
    Replies: 3
    Last Post: 03-30-2019, 01:53 AM
  2. Replies: 7
    Last Post: 12-31-2016, 12:29 PM
  3. A strange nonlinear problem or question has shown up again.
    By mel. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2013, 05:38 PM
  4. Problem with nonlinear regression polynomial question...
    By maribeth721 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2013, 06:06 PM
  5. GRG Nonlinear vs. SimplexLP in Solver
    By mitts in forum Excel General
    Replies: 0
    Last Post: 06-24-2011, 02:08 PM
  6. Replies: 2
    Last Post: 02-08-2006, 06:55 PM
  7. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 PM

Tags for this Thread

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