'PlotFcns' is not an option for INTLINPROG

조회 수: 2 (최근 30일)
Or Hirshfeld
Or Hirshfeld 2015년 3월 30일
댓글: Matt J 2015년 3월 30일
Hello I'm writing a code that should find optimal solution for distribution of air pollution sensors. I'm using 'intlinprog' solver that it's best suit for mixed integer linear program. All my Variable are set to be binary (integers that limited from 0 to 1) but i have a lot of them, 20100 variables, so it take my computer time to compute solution. i ran the solver for about an hour and still no result. I wish to track the iterations the solver make in order to understand if there is any problem during the run.
I found documentation that give example how to plot the solutions during iterations but if failed to work http://www.mathworks.com/help/optim/ug/intlinprog-output-functions-and-plot-functions.html
The line i used is the following:
options = optimoptions(@intlinprog,'PlotFcns',@optimplotmilp)
[x,fval,exitflag,output] = intlinprog(f,intcon,A,B,Aeq,beq,lb,ub,options)
And the error i get is 'PlotFcns' is not an option for INTLINPROG.
I'm using Matlab R2014a
Thank you Or Hirshfeld אור הירשפלד

채택된 답변

Matt J
Matt J 2015년 3월 30일
The PlotFcns option was introduced in R2014b, see
If you can upgrade, that would be the simplest solution.
  댓글 수: 2
Or Hirshfeld
Or Hirshfeld 2015년 3월 30일
Thank you for the fast response Is there a way to workaround to get results while the intlinprog solver is running?
Matt J
Matt J 2015년 3월 30일
Workaround without upgrading? I don't think so. Other than the Display option, my best recommendation is that you use the MaxGenerations, MaxIter, or MaxTime options to abort the Optimization at a point where you think it should be showing reasonable progress.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by