Hi,
I am working on a project of delivery planning.
In my model i have a constraint which defines the Unavailability of a vehicle for some time due to maintenance or already on a delivery. The Time a vehicle becomes unavailable is a parameter.
the constraint is :
Here,
X_v,t → indicator variable for maintenance(whether need to go for maintenance)
S(v) → time required for maintenance of vehicle v
status_v,t → indicator variable for availability of vehicle v on day t
I am unable to write it in AIMMS. how to get the range of tau ?
i was able to get the range for a single value parameter h using SubRange function
tau in SubRange(T, t, t + h)
but for a parameter set S SubRange is not working. Writing S(v) in place of single valued parameter h giving me this error
*There is a mismatch in the master sets of set "T" and domain set "S" in the first argument of the call to intrinsic function "SubRange".
- what could be a possible solution for writing this constraint if S(v) is a parameter Set?
- what if S(v) is a variable set?