Thanks Dana, I understand the logic but cannot get it to work. Here is
what I have:
B2:H2 = 10,15,20,25,30,35,40
B3:H3 = 100,150,200,300,400,600,800
B4:H4 are helper cells to be changed which are constrainted to binary
(ie. either 0 or 1)
B5:H5 = ROUND(B4:H4,0)
I5 = SUM(B5:H5) which is constrainted to = 1
I have a second table that is similar to this one but contains
different values.
B9:H9 = 10,15,20,25,30,35,40
B10H10 = 150,200,250,350,500,800,1000
B11:H11 are helper cells to be changed which are constrainted to binary
(ie. either 0 or 1)
B12:H12 = ROUND(B4:H4,0)
I12 = SUM(B5:H5) which is constrainted to = 1
C17 = SUMPRODUCT(B2:H2,B4:H4)
D17 = HLOOKUP(C17,B2:H3,2)
C18 = SUMPRODUCT(B9:H9,B11:H11)
D18 = HLOOKUP(C18,B9:H10,2)
My target cell is C22 =
(40000*D17+60000*D18+(40000/C17*110+60000/C18*110)*8*5)/1000000 and is
set to find the minimum.
As a starting point, I set B4=1 and B11=1. By trial and error, the end
result should be D4=1 and D11=1. Yet, excel solver does not generate
that result; instead, it says the starting values is the solution.
I tried giving more constraints such as I5 >=0.99, I5 <=1.01, I12
=0.99, I12 <=1.01 but still won't work.
Any ideas will be appreicated, thank you.