Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Variable initiation (lowerBond, UpperBound)

Variable initiation (lowerBond, UpperBound)

Is there any syntax to hold low and upper value of variable simulation.  We have lower bound to initiate a variable with Variable(start=StartValue) but I would like to know if there is upper bound to be used in conjunction with the start value something like: Variable(start=StartValue, end=EndValue)?

Re: Variable initiation (lowerBond, UpperBound)

variable(min=minValue,max=maxValue,start=initialGuess)

Re: Variable initiation (lowerBond, UpperBound)

sjoelund.se wrote:

variable(min=minValue,max=maxValue,start=initialGuess)

Thank you sjoelund.  I tied that but it didn't stop the variable from breaching the max value.  I just wanted the simulation to be performed with in the range as noted above.

There are 0 guests and 0 other users also viewing this topic
You are here: