GAMS Engine with GAMSModelInstance
Posted: Fri Jun 24, 2022 11:55 am
Dear GAMS community,
I have a question that is rather broad but hoping to get some clarifications.
I would want to quantify the benefit with GAMS Engine of being able to run multiple model solves in parallel. This could potentially allow many more parallel runs than the number of cores one would have when using the GAMS multi-threading facility or the parallel submissions using Python-based (for example) GAMSModelInstance.
My question is to what extent does GAMS Engine allow for wrapping/altering a pre-existing Python code/classes which uses GAMSModelInstance to run a GAMS model. This Python code besides running a sequence of solves also has an internal logic of how the GAMS model parameters are changing across runs (through the Modifiers) and also considers relationships between model solutions across time (for instance, it runs sequences of 5-year simulations where the solution of one year influences the model setup for the next year).
Would I be able to use GAMS Engine to build on this existing Python code? Ideally the Engine would be able to use the classes that I already have, but maybe everything would need to be re-developed and GAMSModelInstance would need to be entirely replaced?
Many thanks in advance for any tip/hint.
Kind regards,
Victor
I have a question that is rather broad but hoping to get some clarifications.
I would want to quantify the benefit with GAMS Engine of being able to run multiple model solves in parallel. This could potentially allow many more parallel runs than the number of cores one would have when using the GAMS multi-threading facility or the parallel submissions using Python-based (for example) GAMSModelInstance.
My question is to what extent does GAMS Engine allow for wrapping/altering a pre-existing Python code/classes which uses GAMSModelInstance to run a GAMS model. This Python code besides running a sequence of solves also has an internal logic of how the GAMS model parameters are changing across runs (through the Modifiers) and also considers relationships between model solutions across time (for instance, it runs sequences of 5-year simulations where the solution of one year influences the model setup for the next year).
Would I be able to use GAMS Engine to build on this existing Python code? Ideally the Engine would be able to use the classes that I already have, but maybe everything would need to be re-developed and GAMSModelInstance would need to be entirely replaced?
Many thanks in advance for any tip/hint.
Kind regards,
Victor