Puzzle: In a game grid some cells are missing. Each line has only one colored cell with a label (a number greater than zero). This is an example grid and the number of columns/rows can be less than the colored cell:
All numbers in the grid are for example.
A player can only move a colored cell in a horizontal direction. When all cells of the same color are placed in one column a reduction factor is applied to the numerical labels, and (vice versa) if such a position is violated the initial label values are restored. The factor is different for each color.
The player's task is to arrange the colored cells so that the sum of all labels is minimal. In the final solution the sum of labels in one column for cells of different colors cannot exceed a certain value. This value can be different for each column.
I have a practical application of the task above and I want to formulate a puzzle for the first time. I am looking for some similar tasks, because for now I can't formulate an optimization task.
Edit I have read the paper Connected bin packing problem on traceable graphs and looking for a graph approach.
Some very interesting procedures for the bin packing problem with precedence constraints are discussed in the paper.
Question: Is it possible to find the optimal solution to the proposed puzzle?