Error Messages



If a procedure or function encounters an error, then it normally terminates with a nonzero return code and prints an error message.

The following is a list of the error messages. For reference purposes, each message is numbered. Errors are prefixed by E- and warnings by W-.

E-02   Unknown function func

This message is printed if a function referenced in a Func statement cannot be identified as an Xpress-SLP internal function or as a user function.

E-03   The linear part of the problem is infeasible

This message is printed when the problem is loaded if the linear constraints can be identified as infeasible without any optimization (typically because of inconsistent bounds).

E-04   SLPloadprob failed with unrecognised return code num

This message is printed when the problem is loaded and finds an error other than E-03 (linear part infeasible). There is usually a preceding error message with more details. Contact Dash Optimization if the reason is not apparent.

W-05   SLPglobal not executed - relaxed problem is not optimal

This message is printed when global (MISLP) optimization is attempted (either explicitly with SLPglobal or implicitly using the "g" option in the optimization procedure) and the linear relaxation is infeasible.

E-06   SLPglobal returned error code num

This message is printed when global (MISLP) optimization fails with an unrecoverable error. The code number is that returned by the Optimizer or Xpress-SLP.

E-07   part of the XVitem has not been created

This message is printed if a dynamic variable or expression has not been created before it is used in an XVitem function.

W-08   Values not available

This message is printed if an attempt is made to write the value of an expression before the problem is optimized.

W-12   Unable to calculate user functions outside optimisation

This message is printed if an attempt is made to write the value of an expression including a user function. Only expressions of this type which appear as constraints in the problem can be calculated.

E-15   Error: Inconsistent bounds for variable var

This message is printed in conjunction with message E-03 when inconsistent bounds are identified. The message is suppressed if xslp_verbose is FALSE.

E-23   Division by zero in objective function

This message is printed when checking a nonlinear objective which includes division by a (constant) zero.

E-24   Memory allocation error

This message occurs when the program is unable to allocate enough memory for the current operation. If no more memory is available on the machine, it may still be possible to run the model by pre-allocating some of the memory areas. Use the procedure SLPprintmemory immediately before the command which fails and use the output to preset some of the memory areas with the XSLP_MEM or XPRM_MEM parameters.

E-25   Unidentified callback function func

This message is printed when a function named func is included in a call to SLPsetcallback but cannot be identified as a function within the Mosel model nor as an external user function.

E-26   Callback function func is not accessible

This message is printed when a function named func is included in a call to SLPsetcallback and has been identified as an external user function, but has an invalid address, probably supplied by SLPsetuserfuncaddress or an equivalent external function using XSLPsetuserfuncaddress.

E-27   Problem not loaded - use SLPloadprob first

This message is printed when a call to SLPmaximize or SLPminimize does not include the definition of the objective, and the problem has not already been loaded using SLPloadprob. Include the objective in the call to the optimization procedure or use an explicit SLPloadprob first.

E-28   Relaxed problem not solved - use SLPmaximize/minimize first

This message is printed when a call to SLPglobal is not preceded by a call to SLPmaximize or SLPminimize to solve the relaxed problem.

E-29   Error in definition of XV

This message is printed when an array of xvitems is used as an XV without having been defined through the SLPDATA("XV") procedure.

E-30   func is not available in this version of Xpress-SLP

This message is printed when an attempt is made to access a function which is not included in the version of the Xpress-SLP optimizer being used. If the function is required, then Xpress-SLP must be upgraded to a later version.

E-31   Unidentified user function func

This message is printed by SLPcalluserfunc when the user function named has not been defined through SLPDATA("UF").

E-32   Incorrect dimension for array arr in function func

This message is printed when real arrays are being used in the interp function but have more than two dimensions in total.

E-33   Incorrect dimension for array arr used as XV

This message is printed when a real array is being used as an XV but has more than xslp_maxxvarraydimension dimensions.

E-34   func error accessing data in array arr

This message is printed when data is unobtainable from a real array, probably because the requested data is out of range.



If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.