+ Reply to Thread
Results 1 to 3 of 3

VBA Optimization using matrixes

  1. #1
    Registered User
    Join Date
    05-21-2019
    Location
    NL
    MS-Off Ver
    365
    Posts
    2

    VBA Optimization using matrixes

    Hello,

    I'd like to know the proper method to do the following:

    I've a table consisting of different products (raw materials) with different properties. Refer to the first input table in the attachment for a small example. The different products are in the columns, the properties are the rows.

    I want to calculate a mix from these different products to a desired composition. See Input table 2 in the attachment.

    All these raw materials have different prices, there are multiple solutions available. I want to have the cheapest combination of raw materials. Refer to the output table.

    What my idea is that I have two matrixes: the raw materials matrix and the desired product matrix. I'd like to know the best way by using these matrixes (in vba) to optimize the composition with the lowest price and eventually have an optimization to maximize consumption of a raw material, while still having a low price combination.

    Kind regards,
    whitetigerck
    Attached Images Attached Images

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: VBA Optimization using matrixes

    So you want to maximize price by optimizing product mix? Doesn't that include the implicit assumption that all components have the same cost?

    Shouldn't the percentages in each column total 100%?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-21-2019
    Location
    NL
    MS-Off Ver
    365
    Posts
    2

    Re: VBA Optimization using matrixes

    Hi,

    Thanks for responding.

    I want to minimize the price by optimizing the product mix. Depending on the composition of the raw material (which, for this case, should not be 100% total), the value of the raw material is different.

    Different raw materials have different component values and different prices, but are for example limited in the maximum amount of components you can use in the end product.

    The real table is larger, multiple solutions are possible. I want to have 2 solutions:
    - the cheapest solution
    - solution wich maximum consumption of product B, while still having a low price

    Depending on the end product, not each desired product composition is relevant. Most of the time only 4 different components are relevant.

+ 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] VBA optimization
    By ChipsSlave in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-14-2016, 09:57 AM
  2. Problem with inverse matrixes 6x6 matrix
    By fabio12 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-22-2014, 07:06 PM
  3. Formula Optimization for Combining Matrixes
    By par0016 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2013, 03:23 AM
  4. Replies: 2
    Last Post: 12-23-2010, 09:30 PM
  5. Replies: 1
    Last Post: 11-19-2008, 08:35 PM
  6. I need of optimization -Please help!
    By Mm73 in forum Excel General
    Replies: 1
    Last Post: 08-25-2008, 02:18 PM
  7. Replies: 0
    Last Post: 08-29-2005, 11:08 AM

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