Skip to main content
Solved

How to get an attribute value from a Variable?

  • March 5, 2021
  • 1 reply
  • 42 views

Forum|alt.badge.img
  • AIMMS 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   

 

Best answer by mohansx

@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

1 reply

mohansx
Forum|alt.badge.img+5
  • Former AIMMSian
  • 223 replies
  • Answer
  • March 10, 2021

@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



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

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