Skip to main content
Solved

Is there a function for absolute value?

  • May 1, 2023
  • 2 replies
  • 53 views

Forum|alt.badge.img+4

Hi everyone, is there a predefined function to get the absolute value of variables?

 

Best answer by Marcel Hunting

Hi @Chunyang. That is the abs() function. Note that abs(x) in a math program, with x a variable, can be reformulated using the trick described in section 6.1 of the AIMMS Modeling Guide.

2 replies

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4
  • AIMMSian
  • 258 replies
  • Answer
  • May 2, 2023

Hi @Chunyang. That is the abs() function. Note that abs(x) in a math program, with x a variable, can be reformulated using the trick described in section 6.1 of the AIMMS Modeling Guide.


Forum|alt.badge.img+4
  • Author
  • Enthusiast
  • 19 replies
  • May 2, 2023

Hi @Chunyang. That is the abs() function. Note that abs(x) in a math program, with x a variable, can be reformulated using the trick described in section 6.1 of the AIMMS Modeling Guide.

Thanks a lot!



Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator