why ga become infeasible after increasing the size of variables

조회 수: 1 (최근 30일)
BOWEN LI
BOWEN LI 2019년 9월 2일
댓글: BOWEN LI 2019년 9월 7일
Hi, I am trying to use ga to solve a mixed integer optimization problem. I have a problem that ga became infeasible after i enlarged the size of my varibles. For example, if the number of varibles are 80 or 150, ga runs very good. But when it comes to 252 variables, ga immediately becomes infeasible.In my problem, i set my number of variables to "N" which can be changed before the optimization.
Thank you!
  댓글 수: 12
Walter Roberson
Walter Roberson 2019년 9월 7일
Could you post your complete adjusted totalcost file?
My testing before strongly suggested that your linear constraints cannot be met, so it would not matter what your function calculated (provided the result was not infinite or nan) and you would still get told it was infeasible.
BOWEN LI
BOWEN LI 2019년 9월 7일
Sure no problem. totalcost912019.m is the adjusted file.
I put my constraints in the thesis_code2 file.
My linear constriants basically says that:
A1: yi(: , :, t) - yi(:, :, t-1) >= 0 (t=2:N)
A1sub: sij(: , :, t) - sij(:, :, t-1) >= 0 (t=2:N)
A2: for each sij(:, :, t) matrix, the upper and lower half that symmetry to the diagonal are same
A3: negative of A2
A4: for each time period(t), if yi to yj are all "1", then sij is 1, 0 otherwise.
Since the constraints are created based on the paper I referenced which has A1 but not A2 A3 and A4. And based on my x outcome, at least A1 is met. However, A2 - A4, especially A4, should be met in my problem.
Thank you!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Wireless Communications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by