Skip to content

Add support for Excel Macro invocation #1

@adamnagel

Description

@adamnagel

When the current Excel wrapper runs, it sets the values of some cells (the parameters), then reads the values of some other cells (the unknowns). However, it is common for a spreadsheet to include macros. These are code or plug-ins that can be invoked to perform calculations. In these cases, the "output" values of the spreadsheets are not updated until the macro is invoked.

Here are some of the improvements that will need to be made to support macros:

  • The test model needs to include a macro
  • An optional constructor parameter allows a user to say "here's the macro you need to run to get updated values"
  • When solve_nonlinear() runs, it needs to set the "parameter" cells, invoke the macro, wait for the macro to finish, and then read the "output" cells

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions