![]() |
Frontline Systems, Inc. |
||||||||||||||||||
|
|||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| Decision Variables | |
| Objective Function | |
| Constraints |
A solver deals with numbers, so you'll need to quantify the various elements of your model: decision variables, constraints, and the objective -- and their relationships.
Start with the decision variables. They usually measure the amounts of resources, such as money, to be allocated to some purpose, or the level of some activity, such as the number of products to be manufactured, the number of pounds or gallons of a chemical to be blended, etc.
If you are shipping goods from, say, 3 different plants to 5 different warehouses, there are 3 x 5 = 15 different routes along which products could be shipped. So, you might have 15 variables, each one measuring the number of products shipped along that route.
You might also have 4 different product types, and you might want to plan shipments in each of the next 6 months. So this might lead to 3 x 4 x 5 x 6 = 360 variables. This illustrates how a model can become large rather quickly! Part of the art of modeling is deciding how much detail is really required; for example, you might not need to explicitly measure shipments of different product types.
Once you've defined the decision variables, the next step is to define the objective, which is normally some function that depends on the variables. For example, suppose you were planning how many units to manufacture of three products: TV sets, stereos, and speakers. Your objective might be to maximize profit, so assume that each TV set yields a profit of $75, each stereo $50, and each speaker $35. Then your objective function might be:
75 * TVsets + 50 * Stereos + 35 * Speakers
On a spreadsheet where the number of TV sets, stereos and speakers are in cells D9, E9 and F9 respectively, the formula would be:
= 75*D9 + 50*E9 + 35*F9
You'd be finished at this point, if the model did not require any constraints. For example, in a curve-fitting application, the objective is to minimize the sum of squared differences between each actual data value, or observation, and the corresponding predicted value. This sum has a minimum value of zero, which occurs only when the actual and predicted values are all identical. If you asked a solver to minimize this objective function, you would not need any constraints.
In most models, however, constraints play a key role in determining what values can be assumed by the decision variables, and what sort of objective value can be attained.
|
To Learn More: For instant access to example models, full-text User Guides, and to download free 15-day trial versions of our software products whenever you're ready, you can register now. |
||||||||||||||
|
||||||||||||||
| Our Premium Solver Platform works with existing Excel Solver models, solves much larger problems up to hundreds of times faster, and solves new kinds of problems via Evolutionary Solver. Solver Engines plug into the Premium Solver Platform. |
| Solver Platform SDK makes it easy to solve any type or size of optimization problem in your Visual Basic, VB.NET, C/C++, C#, Java, or MATLAB program. And it's easy to deploy your application with our flexible licensing for software vendors and corporate developers. |