Number of variables limit in bintprog

조회 수: 4 (최근 30일)
ToLos Mil
ToLos Mil 2013년 3월 7일
답변: Matt J 2014년 9월 4일
Hello everyone,
does anyone know why there is a limit at the number of variables (i.e. 65535) in function bintprog?
If the problem that you are trying to solve has more variables the function cannot solve it and outputs the error message:
"Error using bintprog
The size of the problem is too large for the current solver."
The reason is not clear to me.
  댓글 수: 1
Matt J
Matt J 2014년 9월 4일
Roger Commented
I am having the same problem. Does any one have a work around?

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

답변 (1개)

Matt J
Matt J 2014년 9월 4일
If you are running 32-bit OS and MATLAB, maybe it would go away if yo upgrade to 64-bit. Or maybe if you upgrade your MATLAB version to at least R2013b. I have no problem running problems of that size, e.g.,
>> N=65535; f=ones(1,N); x=bintprog(f);
Optimization terminated.
However, you should realize that a problem of this size could have a complexity of 2^N, see Limits of the Algorithm here,

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by