Prescriptive optimizer to a target value.
thabelangkgotso
New Altair Community Member
Hi, I've been trying to create a prescriptive model that optimizes a parameter. However, I want to optimise to a particular value. I can only find the extract performance operator, but that only has maximum and minimum options. What can I use inside the prescriptive optimizer operator to do this?
Tagged:
0
Best Answer
-
Hi,What you can do is to penalize values bigger than x like this:
optmizationValue = x - if(x>eval%{target},1e5,0)
this way you avoid values > target.Best,Martin0
Answers
-
Hi,usually you just create the value
pow(value-targetvalue,2)
and then extract this value to optimize on. Similarly you can optimize on more than one value at a time.Best,Martin0 -
Hi
Thank you for the response. I meant, how do I limit the maximum value? So if I'm trying to optimise x by changing a,b, and c, how do I cap the maximum value that x can be maximized to?
This is what I have so far:
0 -
Hi,What you can do is to penalize values bigger than x like this:
optmizationValue = x - if(x>eval%{target},1e5,0)
this way you avoid values > target.Best,Martin0