[Deprecated] UnattendedFitting
A free GitHub account is required to access the program code in this repository; send us your GitHub username.
Modules to allow unattended parameter fits to Dynochem scenarios using old API calls. Retained here for backwards compatibility only.
Now that Dynochem 6 / Scale-up Suite 2 are released, you can invoke the full power of the Fitting module much more easily and flexibly with a RunScript Automation license. More details here.
The repository is not public, so the code should not be shared outside this repository and your own dynamic models.
Autofit.bas: For use when e.g. fitting UA to a series of scenarios (experiments) where a different UA applies in each scenario.
- Run a fit in the Fitting window and generate a Fitting Report that indicates the parameters you would like to fit. Include this in your Excel file as ‘Fitting Report’.
- Insert the code in a VBA Module inside the target model that contains the scenarios and data.
- Insert a reference to ModelAutomation in your project.
- Then invoke the code from your own code or by pressing a macro button.
- Due to a Microsoft bug, Fitting progress reported in the Excel status bar (bottom left of Excel window) works best in Office 2016/365 when using Office Theme: White. That’s available under File>Options>General in Excel.
The main module is called OuterFit.