"intlinprog" error
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (3)
John D'Errico
am 9 Dez. 2016
Bearbeitet: John D'Errico
am 9 Dez. 2016
Upgrade your MATLAB release to the current version? You cannot use capability that was not introduced until after your release.
1 Kommentar
Steven Lord
am 9 Dez. 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.
marwan alasali
am 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 Kommentar
John D'Errico
am 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.
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!