Optimization Problem with Fixed Discreet Variables

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,

 채택된 답변

Alan Weiss
Alan Weiss 2020년 2월 27일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2020년 2월 26일

답변:

2020년 2월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by