Filtering Question
evgeny
New Altair Community Member
Answers
-
Hi,
yes. I think that should to the Attribute_filter, isn't it?
Greetings,
Sebastian0 -
thx, Sebastian, could you post an example?
i know how to filter, say for attribute1 to be greater than zero (e.g. att1>0), but how can i filter for attribute1 to be greater than a variable (e.g. att1>x) where i would specify x externally. or ultimately get ParameterOptimisation to choose it for me.0 -
G'Day,
Variables are called Macros in RM, and can be incorporated most places that text gets accepted, like in SQL or parameters, in the format %{Macro_name} , like this...<operator name="Root" class="Process" expanded="yes">
<operator name="ExampleSetGenerator" class="ExampleSetGenerator">
<parameter key="target_function" value="random"/>
</operator>
<operator name="Set Your Variable X" class="SingleMacroDefinition">
<parameter key="macro" value="X"/>
<parameter key="value" value="0.5"/>
</operator>
<operator name="ExampleFilter" class="ExampleFilter">
<parameter key="condition_class" value="attribute_value_filter"/>
<parameter key="parameter_string" value="att1<%{X}"/>
</operator>
</operator>0 -
thank you very much. very helpful as always.
is there anywhere a list of acceptable synthax options for parameter_string (such as "att1<%{X}")?0