Replies: 1 comment 5 replies
-
You would need to implement a custom move. The custom move would update the execution mode and resources of an entire chain. Alternatively, since execution mode and resource are one to one, and resource is an anchor, could you make the execution mode variable a fact on the resource, and access it from the allocation using an anchor shadow variable: @AnchorShadowVariable(sourceVariableName = "previousAllocation")
Resource resource;
public ExecutionMode getExecutionMode() {
return resource.getExecutionMode();
} We are currently working on a framework to make writing custom moves easier; stay tuned. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am optimizing a FJSP problem. In my model, allocation is defined as @planning entity, which has two variables: execution mode and previous allocation. Previous allocation is defined as a chained variable, and its anchor is Resource. Resource and execution mode are one-to-one correspondence. When the variable execution mode changes (from one resource to another), I hope that another variable previous allocation will move to the new Resource chain.
The sourcevariable of Anchor Shadow is previous allocation. I found that anchor does not support Listener. How can I implement this process? Or can you provide a new model idea?
Chain like: Resource1 -> allocation1 -> allocation2
Beta Was this translation helpful? Give feedback.
All reactions