Solved

How to get an attribute value from a Variable?

  • 5 March 2021
  • 1 reply
  • 27 views

Badge
  • Enthusiast
  • 7 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

@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

View original

1 reply

Userlevel 5
Badge +2

@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