Solved

Is there a function for absolute value?

  • 1 May 2023
  • 2 replies
  • 29 views

Badge +4

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

 

icon

Best answer by Marcel Hunting 2 May 2023, 09:49

View original

2 replies

Userlevel 5
Badge +4

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.

Badge +4

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!

Reply


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

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