Question: Gusek / GLPK I have the following code for running a de-shredding program in matlab. But it doesn't work, and the picture seemt wrong in
Gusek / GLPK
I have the following code for running a de-shredding program in matlab. But it doesn't work, and the picture seemt wrong in the testimage. I hope someone can see why the constraints aren't working properly

Testimage:


HRI: Set of shreds set 1: # Set from 1 to 150 set K: # Set from 1 to 4 # Parameters # d[j]; dissimilarity value for shreds i and J param Dfi in I,j in I,k in K); # Decision var i able # [iJ] is shred i immidiatly left of shred J?-74 ? var x{i in 1,j in 1, k in K), binary: var ysi in I}, integer # Model minimize dissim: sumi in I,j in I,k in K) D[i,j,k]*x[i,j,k]; rightonetj in I sumi in I,k in K) x[i,j,k]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
