I know that custom shadow variables are currently not supported in optapy, so is there a way to solve the optimization problem below: distribute tasks from the project among employees, given that the tasks have a clear order in which they must be performed and people have skills, depending on which the task execution time changes?
All ideas will be appreciated.
Custom shadow variables ARE supported in
optapy: https://www.optapy.org/docs/latest/shadow-variable/shadow-variable.html#customVariableListener ; It uses the old style of@CustomShadowVariable(@custom_shadow_variablein Python) instead of@ShadowVariable. However,ListVariableListeneris not currently supported. You can use the old chained model of the domain and constraints, which should be fully supported inoptapy. Support for the new@ShadowVariableandListVariableListenerwill be added in a future version ofoptapy.Here how the variable listener would look in Python:
and here how it can be used in a
@custom_shadow_variable: