Correcting run time errors in Mosel
Besides the detection of syntax errors, Mosel may also give some help in finding run time errors. It should only be pointed out here that it is possible to add the flag -g to the compile command to obtain some information about where the error occurred in the program, resulting in a command sequence such as
mosel compile -g mymodel.mos mosel mymodel.bim
or short
mosel exec -g mymodel
Also useful is turning on verbose reporting, for instance
setparam("XPRS_VERBOSE",true) setparam("XPRS_LOADNAMES",true)