フィルターのクリア

how to set intlinprog options

7 ビュー (過去 30 日間)
Standardtrickyness
Standardtrickyness 2015 年 9 月 2 日
コメント済み: Alan Weiss 2015 年 9 月 2 日
how to set intlinprog options to increase options.maxnodes I've tried both
options=optimoptions('intlinprog') ;
options.MaxNodes=10^16;
and
optimoptions('intlinprog','MaxNodes',10^16);
intcon= zeros(34,1);
for i= 1 : 34
intcon(i,1)=25+i;
end
D = [ DDD ; eye(25), zeros(25,34); -eye(25), zeros(25,34) ] ;
f= [zeros(25,1) ; g ; -1 ] ;
b=[zeros(33,1); [1-0.0001 ] ; ones(25,1); ones(25,1) ] ;
options=optimoptions('intlinprog') ;
options.MaxNodes=10^16;
optimoptions('intlinprog','MaxNodes',10^16);
w = intlinprog(-f,intcon,D,b) ;
However, when I run my code the program keeps setting options.maxnodes to 10^8
Intlinprog stopped because it reached the maximum number of nodes,
options.MaxNodes = 10000000 (the default value).

回答 (1 件)

Matt J
Matt J 2015 年 9 月 2 日
You define "options", but never pass it to intlinprog.
  5 件のコメント
Walter Roberson
Walter Roberson 2015 年 9 月 2 日
編集済み: Walter Roberson 2015 年 9 月 2 日
It creates an options structure using typical options for intlinprog and then setting MaxNodes to 10^16 in that structure.
Alan Weiss
Alan Weiss 2015 年 9 月 2 日
As the release notes for R2014a state, you cannot use the Optimization app with intlinprog. Sorry.
Alan Weiss
MATLAB mathematical toolbox documentation

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Programming and Mixed-Integer Linear Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by