how to formulate an integer optimization problem using BINTPROG?
이전 댓글 표시
I want to formulate optimization using bintprog. My problem is:
I have total 9 numbers in the range [6000, 34000]. Addition of all these numbers is 190,000. Now I want to group these numbers in 5 categories such that sum of each category should not be more than 40,000. My objective is to
minimize sum(40,000 - [sum of category i]) where i = 1,2,3,4,5.
I guess my X should be 9-by-5 binary matrix, A is 1-by-9 matrix of those 9 numbers so that A*X will be a 1-by-5 matrix (sum of numbers in each category). But my B (A*X<=B) cannot be a row matrix (right?). Also, I am not sure if X should have more than one column. Please help!!!
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!