Hello Access Expert.
I would like to know if the below is possible in Access / VBA and if so can I leverage something on the internet to get me started?
Thank you,
Suppose you have three buckets A, B, C
Bucket Capacity % Water $
A 70L 10% $1
B 80L 30% $2
C 100L 40% $3
You must make an optimal blend from these buckets (optimized for Profit) where the Blend must be 100L but <= 25% water.
For Example:
Scenario 1
I can take 40L of A (4L of Water), 30L of B (9L of Water) and 30L of C (12L of Water) which is 100L with 25L of Water for a profit of
40($1) + 30($2)+ 30($3) = $190
Scenario 2
I can take 50L of A (5L of Water), 0L of B (0L of Water) and 50L of C (20L of Water) which is 100L with 25L of Water for a profit of
$60 + $150 = $210
Bucket Capacity, % Water, $ values are all variables and I would need to determine the most profitable Scenario out of all the Scenarios. There is actually more than 3 buckets and there is another Variable but I want to keep the base case simple.
Thank you
I would like to know if the below is possible in Access / VBA and if so can I leverage something on the internet to get me started?
Thank you,
Suppose you have three buckets A, B, C
Bucket Capacity % Water $
A 70L 10% $1
B 80L 30% $2
C 100L 40% $3
You must make an optimal blend from these buckets (optimized for Profit) where the Blend must be 100L but <= 25% water.
For Example:
Scenario 1
I can take 40L of A (4L of Water), 30L of B (9L of Water) and 30L of C (12L of Water) which is 100L with 25L of Water for a profit of
40($1) + 30($2)+ 30($3) = $190
Scenario 2
I can take 50L of A (5L of Water), 0L of B (0L of Water) and 50L of C (20L of Water) which is 100L with 25L of Water for a profit of
$60 + $150 = $210
Bucket Capacity, % Water, $ values are all variables and I would need to determine the most profitable Scenario out of all the Scenarios. There is actually more than 3 buckets and there is another Variable but I want to keep the base case simple.
Thank you