remainders

14 views
Skip to first unread message

emily

unread,
Feb 16, 2012, 11:36:12 PM2/16/12
to AIMMS - The Modeling System
I would like to ask how to express i%10(remainders) in AIMMS ?? Thanks

Luis Pinto

unread,
Feb 17, 2012, 1:05:41 AM2/17/12
to ai...@googlegroups.com
Sorry about the bad formatting. I just ctrl+c, ctrl+v form the manual.

hope it helps!

Mod
Mod(
x, ! (input) numerical expression
y ! (input) numerical expression
)
Arguments:
x
A scalar numerical expression.
y
A scalar numerical expression unequal to 0.
Return value:
The function Mod returns the remainder of x after division by |y|. For
y >0, the result is an integer in the range 0, . . . ,y - 1 if both x and y are
integers, or in the interval [0,y) otherwise. For y <0, the result is an
integer in the range y - 1, . . . ,0 if both x and y are integers, or in the
interval (y, 0] otherwise.
Remarks:
A run-time error results if y equals 0.
The function Mod can be used in constraints of mathematical programs.
However, nonlinear solver may experience convergence problems if x
assumes values around multiples of y.
See also:
Arithmetic functions are discussed in full detail in Section 6.1.4 of the
Language Reference.



On 17 February 2012 06:36, emily <emily...@gmail.com> wrote:
I would like to ask how to express i%10(remainders) in AIMMS ?? Thanks

--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To post to this group, send email to ai...@googlegroups.com.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aimms?hl=en.


Reply all
Reply to author
Forward
0 new messages