File Exchange

image thumbnail

Mixed-Integer Linear Programming in MATLAB

version 1.3.0.1 (1.53 MB) by Seth DeLand
MATLAB files from the webinar

31 Downloads

Updated 01 Sep 2016

View License

These files accompany the webinar which can be viewed here: http://www.mathworks.com/videos/mixed-integer-linear-programming-in-matlab-91541.html
About the webinar:
Learn how to use the new optimization solver for mixed-integer linear programming in Release 2014a. This new solver enables you to solve optimization problems in which some or all of the variables are constrained to take on integer values. Mixed-integer problems are commonly encountered in Finance, Energy, and Operations Research, such as when variables represent the number of shares of a stock to purchase, or a yes-or-no (binary) decision.

Comments and Ratings (7)

Mary Fenelon

The webinar that goes along with these files has been updated to use the new problem-based approach for specifying linear and mixed-integer linear problems. The solver-based approach used in these files is still supported but is only mentioned briefly in the webinar.

The files that go with the new version of the webinar are here: https://www.mathworks.com/matlabcentral/fileexchange/65158-linear-and-mixed-integer-linear-programming-in-matlab

zila ezz

please help when i want to run this section

%% Tuning
% The previous solve took a fair amoutn of time in the cut generation
% phase. Turn off cut generation to see if we're able to solve the problem
% efficiently without the cuts.
options = optimoptions('intlinprog');
options.CutGeneration = 'none';
tic;
[xopt,fval,eflag] = intlinprog(-f, intcon, A, b, Aeq, beq, lb, ub, options);
toc

ERROR: Error using intlinprog (line 130)
INTLINPROG has stopped because it encountered an internal error. We are sorry for the inconvenience.

Please contact technical support for assistance with your problem, quoting the code "-98@19".

zila ezz

please help when i want to run this section

%% Tuning
% The previous solve took a fair amoutn of time in the cut generation
% phase. Turn off cut generation to see if we're able to solve the problem
% efficiently without the cuts.
options = optimoptions('intlinprog');
options.CutGeneration = 'none';
tic;
[xopt,fval,eflag] = intlinprog(-f, intcon, A, b, Aeq, beq, lb, ub, options);
toc

ERROR: Error using intlinprog (line 130)
INTLINPROG has stopped because it encountered an internal error. We are sorry for the inconvenience.

Please contact technical support for assistance with your problem, quoting the code "-98@19".

Dear Author
It was a very useful tutorial , but i was trying to apply the same technique to solve my problem but my machine has almost 100 states on which it can work. where as in this example the generator had only 3 states .
How should i formulate my problem for 100 states of my machine.

Updates

1.3.0.1

Updated license

1.3.0.0

updating url

1.2.0.0

Removed slide containing stock images from pdf of slides.

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

MILP_in_MATLAB_Webinar/cashFlowMatching/

MILP_in_MATLAB_Webinar/generatorScheduling/

MILP_in_MATLAB_Webinar/indexFund/