Skip to main content
Solved

How to write a Function

  • January 6, 2021
  • 2 replies
  • 90 views

Forum|alt.badge.img
  • AIMMS Partner
  • 9 replies

I want to write a function in AIMMS which should return a value or an element of Set X(say).

The function is say F(a,b,x) where in Ain B, and in X. The function F should return an element(or value) x1 from set X if x1 is in X otherwise returns no value.

for Example, say F(a,b,x) = x - 10 and = {x | 0<= x <= 100}

F(a,b,20) should return 10  and F(a,b,8) returns no value or a default value which AIMMS will not consider when using this functions return value in a constraint.

Best answer by Anonymous

Please check out https://documentation.aimms.com/language-reference/procedural-language-components/procedures-and-functions/index.html#.

2 replies

  • 0 replies
  • Answer
  • January 7, 2021

mohansx
Forum|alt.badge.img+5
  • Former AIMMSian
  • 223 replies
  • January 7, 2021


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

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