I have got a project in Choco solver, but I have a question about the external effects during the search.
I have got a planning graph with (let's say) BoolVars organised in layers and durations assigned to the layers, which mean that some action starts and some ends. The variable selection is static from the end of the plan to the start of the plan (the choice of the actions in layer is arbitrary).
I am researching a solution that uses a simplex algorithm to help with assigning the durations, as between the start and the end of an action A we need to have a duration equal to N. There are some more constraints in between.
The additional constraints are created based on the instantiation of the BoolVars, however they are organized in an external matrix, so when an end action of the action A is added, in the effect an additional row is added to the matrix and current constraints are reformulated. On backtracking we would like to modify the matrix in the reverse way i.e. remove the row and unpost the constraints.
Is there some way to realize this complex behavior in Choco?