Initializing help system before first use

Overview of subroutines and reserved words

There is a range of built-in functions and procedures available in Mosel. They are described fully in the Mosel Language Reference Manual. Here is a summary.

  • Accessing solution values: getsol, getact, getdual, getrcost, getslack, getobjval
  • Arithmetic functions: abs, arctan, cos, sin, ceil, floor, round, exp, ln, log, sqrt, isodd, random, setrandseed
  • List functions: maxlist, minlist, cuthead, cuttail, findfirst, findlast, getfirst, getlast, getreverse, reverse, gethead, gettail, splithead, splittail
  • String functions: strfmt, substr, _
  • Dynamic array handling: create, exists, finalize, delcell, isdynamic
  • File handling: fclose, fflush, fopen, fselect, fskipline, fwrite, fwrite_, fwriteln, fwriteln_, getfid, getfname, getreadcnt, iseof, read, readln, write, write_, writelnwriteln_
  • Accessing control parameters: getparam, setparam
  • Getting information: getcoeff, getcoeffs, getsize, gettype, getvars
  • Constraint definition: sethidden, ishidden, makesos1, makesos2, setcoeff, settype
  • Time and date: currentdate, currenttime, timestamp
  • Bit values: bitflip, bitneg, bitset, bitshift, bittest, bitval
  • Special values: isfinite, isinf, isnan
  • Miscellaneous functions: asproc, assert, exit, exportprob, reset, setioerr, setmatherr, publish, unpublish