"intlinprog" error

조회 수: 9 (최근 30일)
Ismaeel
Ismaeel 2016년 12월 9일
댓글: John D'Errico 2019년 2월 23일
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

답변 (3개)

John D'Errico
John D'Errico 2016년 12월 9일
편집: John D'Errico 2016년 12월 9일
Upgrade your MATLAB release to the current version? You cannot use capability that was not introduced until after your release.
  댓글 수: 1
Ismaeel
Ismaeel 2016년 12월 9일
편집: Ismaeel 2016년 12월 9일
Thanks John, but it's 2015 release. I have tried on both 2015a and 2015b.

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


Steven Lord
Steven Lord 2016년 12월 9일
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
Ismaeel
Ismaeel 2016년 12월 12일
Thanks all. I've upgraded Matlab and now fixed.

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


marwan alasali
marwan alasali 2019년 2월 23일
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
John D'Errico
John D'Errico 2019년 2월 23일
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.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by