MATLAB Answers

Optimization Problem with Fixed Discreet Variables

1 view (last 30 days)
Marcos Telles
Marcos Telles on 26 Feb 2020
Answered: Alan Weiss on 27 Feb 2020
Hello!
My problem is relatively simple, but I can't find a way to make it.
I have 14 parts of type A and 14 parts of type B and their weights. I need to group they in 7 sets containing 2 of each (each part can be used only once). I want to group in two different ways:
  • Sort the parts so Set1 is in total the lightest one, Set2 the second lightest one and so on;
  • Sort the parts so all sets are as close as possible in weight. Would mean targeting the smallest StdDev of the total weight of each set;
Anyone can help?
Regards,

  0 Comments

Sign in to comment.

Accepted Answer

Alan Weiss
Alan Weiss on 27 Feb 2020
I am not sure, but this example might be relevant.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2019b

Translated by