Currently, we allow users to define derivatives via @variable even if the derivative was already made previously. The info with this addition then overrides any existing info. In relation to #148, this might not be the behavior we want. A current bug of this approach is that although the start value function can be overwritten, the is_vector_start field is not updated accordingly:
model = InfiniteModel()
@infinite_parameter(model, t in [0, 1])
@variable(model, y, Infinite(t))
deriv(y, t)
@variable(model, dy, Deriv(y, t), start = sin)
dy(0) # creating the point variable exposes the incomplete info update
Currently, we allow users to define derivatives via
@variable
even if the derivative was already made previously. The info with this addition then overrides any existing info. In relation to #148, this might not be the behavior we want. A current bug of this approach is that although the start value function can be overwritten, theis_vector_start
field is not updated accordingly:In the near term, we should fix this bug. For
v0.6
, we should determine if we should continue this support or not.