The Optimization with the Apache Library model demonstrates how the Apache Optimization library can be used within EJS to fit experimental data. In this simulation, six different optimization algorithms have been implemented, and three different types of (pre-measured) experimental data are included: nuclear decay, a falling ball, and a damped oscillator.
In the description pages, exercises are provided that encourage the user to explore the efficiency and effectiveness of different algorithms (applied to different types of data), and the process of implementing code from the Apache Optimization library is described. In this simulation, the sum of squared deviations is minimized, but if you have estimates for the uncertainties in your experimental data, the implementation can easily be modified to instead minimize the value of the chi-squared or reduced chi-squared deviation. For maximization problems, simply follow the example code provided here, but replace the word MINIMIZE with MAXIMIZE.
The EJS "Optimization with the Apache library" model was created using the Easy Java Simulations (EJS) modeling tool. It is distributed as a ready-to-run (compiled) Java archive. Double clicking the ejs_Optimization_Apache.jar file will run the program if Java is installed. You can modify this simulation if you have EJS installed by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item.
Please note that this resource requires
at least version 1.6 of Java.
Optimization with the Apache Library Source Code
The source code zip archive contains an XML representation of the Optimization with the Apache Library Model. Unzip this archive in your EJS workspace to compile and run this model using EJS. download 151kb .zip
Last Modified: June 13, 2014
previous versions
<a href="https://www.compadre.org/OSP/items/detail.cfm?ID=12600">Garland, Chad, and Larry Engelhardt. "Optimization with the Apache Library Model." Version 1.0.</a>
C. Garland and L. Engelhardt, Computer Program OPTIMIZATION WITH THE APACHE LIBRARY MODEL, Version 1.0 (2013), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194).
C. Garland and L. Engelhardt, Computer Program OPTIMIZATION WITH THE APACHE LIBRARY MODEL, Version 1.0 (2013), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194>.
Garland, C., & Engelhardt, L. (2013). Optimization with the Apache Library Model (Version 1.0) [Computer software]. Retrieved December 8, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194
Garland, Chad, and Larry Engelhardt. "Optimization with the Apache Library Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194 (accessed 8 December 2024).
%A Chad Garland %A Larry Engelhardt %T Optimization with the Apache Library Model %D January 22, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194 %O 1.0 %O application/java
%0 Computer Program %A Garland, Chad %A Engelhardt, Larry %D January 22, 2013 %T Optimization with the Apache Library Model %7 1.0 %8 January 22, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=12600&DocID=3194
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.
The Easy Java Simulations Modeling and Authoring Tool is needed to explore the computational model used in the Optimization with the Apache Library Model.