Académique Documents
Professionnel Documents
Culture Documents
Lecture 3
Spreadsheets have nice optimization facilities for casual users
P The optimization facility in spreadsheets P Definition of variables, objective function and constraints P Possible problems P Solution of systems of equations P Implicit problems
Exercises:
P Solve problems 2.2, 2.8, 2.12, 2.13, 2.17 with the optimization utility of your favorite spreadsheet.
Problem 2.3
- solved in a spreadsheet
Demo
Problem 2.3 solved in a spreadsheet
Conclusion:
Explicit optimization problems are very easy to solve in a spreadsheet once they are formulated. What can go wrong?
P Unbounded problems: If the solution is that any of the variables should be 4. P Poles: If the objective function or constraints are undefined for certain values of the design variables. P Non-smooth problems. The optimizer relies on sensitivity information. It will not work if the functions are not differentiable. P No feasible solution. If no solution satisfies all the constraints, or if the initial guess violates some constraints. P Local optima.
Implicit problems
What we can do when the functions of the problem are computed by external, implicit algorithms.
Scenario: your objective function and/or constraints are computed by an external CFD, FEM, GIS, data mining, or other numerical application. Method: Windows spreadsheets offer a function usually called soemthing like @DDE, dynamic data exchange. It can request data from another windows application. If your external software is written for windows, then you can most likely link right away. If your external software is not a native windows application, then you need to write connecting software with Visual Basic or similar. New Windows applications use VBA as the macro language. That may open better possibilities to link with external software.
Exercises
.. for lecture 3/10
Solve problems 2.2, 2.8, 2.12, 2.13, 2.17 with the optimization utility of your favorite spreadsheet.