Forum Discussion
FICO
7 years agoCommunity Manager
What is the code for increasing calculation tolerance?
1 Reply
- FICOCommunity Manager
The MAX_INT value of Mosel is 2 to the power of 31 (that is, roughly 2E9). If you need any larger values you should use real numbers, so for example for your case:
setparam("realfmt", "%.20g") ! Change display format to show up to 20 digits
forall(n in 10..20) writeln(n, "! = ", prod(i in 1..n) real(i))
Note that the correctness of the results will depend on what can be achieved / correctly represented in floating point arithmetic on your computer system (Mosel reals are double-precision floating point numbers).
Mosel tolerance settings do not have any impact on calculations (the parameter 'zerotol' is applied in comparisons between reals).
Related Content
Related Content
Error with Knitro tolerance parameters
Years ago, I used Knitro tolerance parameters XKTR_PARAM_OPTTOL and XKTR_PARAM_FEASTOL successfully. Now (FICO Xpress Mosel 64-bit v6.4.4, FICO Xpress v9.3.0), there seems to be an issue. setparam...2 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum7 unread comments7 unread0Views0likes7CommentsHow to detect between termination by timeout or tolerance
The documentation doesn't clearly explain XPRS_UNF. I believe it means the optimisation finished either due to a XPRS_MAXTIME being reached or a tolerance being met. Without comparing time and tolera...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread0Views0likes6CommentsI'd like to increase the diagnostics to know the cause of an infeasibility.
Hi. I am trying to optimize the attached model. However, it is infeasible. When running the diagnostics, the displayed information is not useful. I would like to see the cause of the infeasibility, e...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread0Views0likes4Comments