Thanks Tushar. You're correct on the Upper bounds of the constraint. One
should include an upper bound on production if necessary. I also made a
typo. I used the following, and it appears to work ok.
Made >= DemandTenPercent
Labor <= 4500
RawMaterial <= 1600.
With the added constraint of
Made <= Demand
Just for discussion, when you mention
You can specify a formula in the right hand side of the constraint. In
your example, it is possible to individual-Made >= 0.1*individual-
Demand...
Were you referring to a constraints directly into Solver?
Excel's Solver I believe does not like Formulas on the right hand side,
although it mostly works. This would be an added benefit of putting these
constraints into a cell as you mentioned.
I believe with a formula on the rhs of a solver constraint, Solver can not
tell if it depends on a changing cell, and must do a lot more work in order
to function. By placing this equation into a cell, Solver is able to check
early in the process if the constraint is dependent of a changing cell. If
not, it does no have to do extra work.
If one wanted to place the following directly into a Solver Constraint..
individual - Made <= -Demand + 0.1 individual
I believe it would be better to rearrange the equation to place the constant
on the rhs.
made - 0.9 *individual <= demand
Because there are no formulas on the rhs, and demand is a constant, Excel
would not have to do extra work.
If one wanted to put the following into Solver,
$F$1>=0.1*Sheet1!$F$7
I believe it would be better to write it as:
10*F1 > F7
Like you mention, it is better to place these into a cell. Just thought I'd
add another benefit.
--
Dana DeLouis
Using Windows XP & Office XP
= = = = = = = = = = = = = = = = =
Tushar Mehta said:
You can specify a formula in the right hand side of the constraint. In
your example, it is possible to individual-Made >= 0.1*individual-
Demand, i.e., one cell at a time. So, =$F$1>=0.1*Sheet1!$F$7 is OK.
But, one cannot specify an array formula of all-cells-in-Made >= all-
cells-of-Fractional-Demand. For that one must use a range as you did,
i.e., =$B$1:$G$1>=Sheet1!$B$9:$G$9
Personally, I minimize the use of hardcoded values within Solver. All
that the use of hardcoded values does is to make the optimization model
and the worksheet that much more difficult to understand. And, the
added benefit of not hardcoding numbers is the ability to use array
formulas!
--
Regards,
Tushar Mehta
www.tushar-mehta.com
Business solutions leveraging technology
Microsoft Most Valuable Professional (MVP) 2000-2004
added to make the constraint of having "pounds made" at least 10% of demand.
Above is not optimal solution. This is optimal Pounds made 96 92.8 104.1
97.7 1036.9 105.5 with a profit of $6,170.44. What I would like to bea
able to do is create a formula in the constraints area, but I am unable to
do that.)