249. SUBMODEL NOT VALID HERE.
LINGO allows you to define submodels within a main model using the SUBMODEL statement. These submodels can be solved using the @SOLVE function in calc sections. You have attempted to locate a submodel in an invalid section of the model. Please move the submodel to the main part of the model, outside of all data, calc and init sections.