How do I solve a error that is "Undefined function 'intlinprog' for input arguments of type 'double'".
11 views (last 30 days)
Show older comments
Hello everybody.
I am a senior student and majoring in Industrial and Management Engineering in Korea.
I have solved a linear programming problem to use 'linprog' in Matlab.
It has worked well, and then I tried to integer linear programming to use 'intlinprog'.
I already have entered datas for input arguments, f, A, b to solve for 'linprog'.
However, it didn't work well when I use 'intlinprog'.
There is a error message for 'intlinprog'.
"Undefined function 'intlinprog' for input arguments of type 'double'."
As you can see from the Documentation Center (intlinprog link: http://www.mathworks.co.kr/kr/help/optim/ug/intlinprog.html#bts3gkc-2 ),
all of input arguments are "double" available.
Please give me way of solution.
Thank you in advance.
0 Comments
Answers (1)
Matt J
on 24 Mar 2014
Edited: Matt J
on 24 Mar 2014
Woohoo! At last, integer programming functionality in the Optimization Toolbox!
As you can see, I haven't installed R2014a yet, and didn't know about this new feature. I'm also willing to bet that your MATLAB installation hasn't yet been upgraded to R2014a either, and that's why it can't find intlinprog.
3 Comments
Matt J
on 24 Mar 2014
Edited: Matt J
on 24 Mar 2014
No, you can't convert linprog to an integer program solver. But, if you also have the Global Optimization Toolbox, the GA command can do mixed integer programming. However, it may not be as robust as whatever algorithm INTLINPROG uses. If your problem happens to be binary, you could just use BINTPROG.
See Also
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!