Computer implemented method for dissimilarity computation between two yarns to be used for setting of a textile machine in a textile process for manufacturing a textile product, wherein in the textile process a first yarn is used and said setting involving the use of at least a second yarn selected from several candidate yarns, both said first and said at least second yarns being identified by physical properties including at least count and by a list of materials, each material in turn being defined by percentage of presence, belonging to a family of materials and by some physical material properties including finesses and length, comprising:
- a) automatically computing material dissimilarity values of all possible combination of the materials of said list of materials of the first and second yarns;
- and
- b) automatically calculating a dissimilarity value between the first and second yarns by applying an algorithm using as inputs the list of materials of the first and second yarns and said computed material dissimilarity values, applying of said algorithm including a weighted aggregation using said material dissimilarity values computed of different combination of pairs of materials of said first and second yarns, where the weights depend on the presence and/or percentage of these materials in the yarns.