For example if I have a variable f I want the lower bound to be
- 0.1 if f < 0.25
- 0.75 if f < 1
- 1.25 if f < 1.5
- 1.7 if f >= 1.5
I've tried the following to no avail
limit1 = m.if3(f-0.25, 0.1, 0.25)
limit2 = m.if3(f-1,limit1, 0.75)
limit3 = m.if3(f-1.5, limit2, 1.7)
f.lower = limit3.value
f.upper = 3
This seems to be able to set the lower bound correctly but when I do
print(f.lower,"<", f.value,"<", f.upper)
I get [0.1] < [constant value independent of lower bound] < 3
Now, I have multiple variables like f in an array with differing lower bound possibilities and all have the exact same values, as if the lower bound didn't even matter
When writing
f.lower=f1
then when I print f.lower.value I get
[correct lower bound] < [upper bound] < upper bound
I'm probably approaching the problem wrong, so I would love some help.
