"intlinprog" error

39 views (last 30 days)
Ismaeel
Ismaeel on 9 Dec 2016
Commented: John D'Errico on 23 Feb 2019
I am trying to add some options to my solver (intlinprog) for my integer-linear-programming problem. Why do I get an error for most options I add:
Error using optimoptions (line 105) 'IntegerPreprocess' is not an option for INTLINPROG. A list of options can be found on the INTLINPROG documentation page.
This is the related part of my code: options = optimoptions('intlinprog','IntegerPreprocess','None'); x = intlinprog(f,intcon,A,b,[],[],lb,ub,options);x=x';
The version of my Matlab is 2015a. Any idea? Thanks

Answers (3)

John D'Errico
John D'Errico on 9 Dec 2016
Edited: John D'Errico on 9 Dec 2016
Upgrade your MATLAB release to the current version? You cannot use capability that was not introduced until after your release.
  1 Comment
Ismaeel
Ismaeel on 9 Dec 2016
Edited: Ismaeel on 9 Dec 2016
Thanks John, but it's 2015 release. I have tried on both 2015a and 2015b.

Sign in to comment.


Steven Lord
Steven Lord on 9 Dec 2016
The online documentation here is for the most recent release of Optimization Toolbox, which is currently release R2016b. In release R2016a many of the options used by Optimization Toolbox functions were renamed, and the current documentation will use the new names.
Use the documentation included in your installation (or the "Current and Legacy Option Name Tables" linked in that entry in the Release Notes) to learn the names used by the toolbox in the release you are using.
  1 Comment
Ismaeel
Ismaeel on 12 Dec 2016
Thanks all. I've upgraded Matlab and now fixed.

Sign in to comment.


marwan alasali
marwan alasali on 23 Feb 2019
what the problem
>> f = [8;1];
intcon = 2;
>> A = [-1,-2;
-4,-1;
2,1];
b = [14;-33;20];
>> x = intlinprog(f,intcon,A,b)
Undefined function 'intlinprog' for input arguments of type 'double'.
  1 Comment
John D'Errico
John D'Errico on 23 Feb 2019
STOP ADDING MULTIPLE NEW ANSWERS TO AN OLD QUESTION. In fact, do not add an answer when you just want to ask a question. Use a comment for that, as I just did.
Ask this as a separate question when you want to ask a question. However my answer there will be this:
if you do not have a license for the optimization toolbox, then you cannot use intlinprog. You would then need to add the optimization toolbox, paying for the new toolbox.
If you have an old MATLAB release that did not have intlinprog at the time, then you cannot use a tool that did not exist at the time. Nor can you use a new toolbox in the old release.
If you have a license that was provided to you, perhaps by your university, then you need to talk to them. Find out if you should have that toolbox in your installation.
You can test much of this by typing
ver
at the command line. It will tell you what is your release, and what toolboxes are installed with it.

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!