Skip to main content

Hello,

 

Is there a way to define an input argument via model edting? 

I know I can create a procedure and define the body e.g.:

 

{    _eProc := me::Create(_spProcName, 'procedure', _eSection);
    me::SetAttribute(_eProc, 'body', _spBody);

}

Hi Marc,

If I remember well, I think you can’t do this directly. I thought you can create a run time parameter and then move that node under the created run time procedure as a ‘trick’ to accomplish this effect. Also thought this was in a how-to somewhere. See me::Move() function.

Joost


Hi Marc,

 

Perhaps Joost is referring to this how-to.

 

With kind regards,

 

Chris


Thanks Joost, Chris 

One note by doing so I found that on https://documentation.aimms.com/language-reference/non-procedural-language-components/set-declaration/set-declaration-and-attributes.html there is a typo.

I wanted to set a subset but the attribute name is ‘subset of’ with a space. (not SubsetOf)

Cheers

 


Reply


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

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