+ Reply to Thread
Results 1 to 9 of 9

Optimise using VBA (without solver)

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    6
    Quote Originally Posted by Richard Buttrey View Post
    What's the aim? Presumably to maximise profit.
    Then are you trying to maximise the profit each week or for all five weeks.

    In any case isn't the best possible 'mix' simply 6 of each if that's your maximum production capacity. I'm certainly not clear how you are defining permutation 'outcomes'.

    Perhaps you'd better upload the workbook and manually add the results you expect for two or three different scenarios
    As there are many factors such as delivery time and storage costs the maximum product mix isn’t the best each week as further on in the weeks I go, the less product mix would be more efficient for profitability.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Optimise using VBA (without solver)

    ..as I said perhaps you'd better upload the workbook with some examples.
    From what you're saying their are constraints on some variables, or some which may be a key variable since they're limited.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-05-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    6

    Re: Optimise using VBA (without solver)

    Screen Shot 2018-12-15 at 19.37.16.png

    How's this? As you can see many factors affect profit. Including: demand, the cost of not meeting demand (and thus them going to another supplier) etc. The whole point of the VBA code is to not include these factors though - as I want it to be dynamic. The only cells I need included are the product mix cells B3:F4 and the total profit cell F16. As many factors will eventually be added or taken away I need it to be dynamic. I have managed to do this myself with a constant product mix and so I know it is possible. However, I am struggling at finding a way to use a varied product mix.

  4. #4
    Registered User
    Join Date
    12-05-2018
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    6

    Re: Optimise using VBA (without solver)

    Quote Originally Posted by Richard Buttrey View Post
    ..as I said perhaps you'd better upload the workbook with some examples.
    From what you're saying their are constraints on some variables, or some which may be a key variable since they're limited.
    I have uploaded a picture, hope this helps

+ 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. [SOLVED] optimise trips
    By missticktock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2018, 12:02 AM
  2. Optimise Indicator Formula?
    By QuantEdge in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-02-2017, 04:24 AM
  3. Loop not optimised
    By radddogg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2017, 08:39 AM
  4. Using Solver Add-In to optimise the results on a scorecard
    By Silverminer in forum Excel General
    Replies: 0
    Last Post: 03-13-2013, 10:08 AM
  5. optimise calculations
    By canadave in forum Excel General
    Replies: 7
    Last Post: 02-02-2011, 01:27 PM
  6. how I can optimise this macro?
    By mithil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2010, 03:42 AM
  7. How to optimise IFISERROR
    By AussieExcelUser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2006, 06:53 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