Prescriptive optimizer to a target value.

thabelangkgotso
thabelangkgotso New Altair Community Member
edited November 2024 in Community Q&A
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:

Best Answer

  • MartinLiebig
    MartinLiebig
    Altair Employee
    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,
    Martin

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    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,
    Martin
  • thabelangkgotso
    thabelangkgotso New Altair Community Member
    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:


  • MartinLiebig
    MartinLiebig
    Altair Employee
    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,
    Martin