How do I solve a error that is "Undefined function 'intlinprog' for input arguments of type 'double'".

11 views (last 30 days)
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.

Answers (1)

Matt J
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
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.
Woonghee Lee
Woonghee Lee on 24 Mar 2014
I am a newbiew, so it is little bit difficult to apply my situation. I will try it tomorrow and feedback. Thank you again. Have a nice day!

Sign in to comment.

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!