Solved

How to get an attribute value from a Variable?

  • 5 March 2021
  • 1 reply
  • 34 views

Badge
  • AIMMS Implementation Partner
  • 9 replies

I have a Binary Variable X(C,V,T).

Suppose for   and  , X(c,v,t) is 1 for a c1  in C.

I have another element parameter/variable (Range in C) F(V,T).

now using this variable X how can i find 

F(v,t) = c1   

 

icon

Best answer by mohansx 10 March 2021, 01:49

View original

1 reply

Userlevel 5
Badge +5

@roy

 

define F(v, t) as 

 

first(c|X(c, v, t) = 1)

 

Read about the first function here: https://documentation.aimms.com/functionreference/elementary-computational-operations/set-related-functions/first.html

Reply


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

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