Mixed Integer Linear Programming Problem

조회 수: 2 (최근 30일)
Hafsa Farooqi
Hafsa Farooqi 2020년 12월 22일
답변: Alan Weiss 2020년 12월 27일
I am trying to solve a integer linear programming problem, written in matlab as follows:
fs = 170;
Ts = 1/fs;
t = 0:Ts:1;
fo = 20;
f = -1*ones(1,171);
intcon = 1:length(f); %% All variables are integers.
lb = zeros(length(171),1); %%
ub = 1*ones(length(171),1); %% Enforces the optimization variables are binary.
Aeq = [];
beq = [];
A = ADS; %% Teoplitz Matrix (Convolution to Matrix Multiplication)
b = 5.*sin(2*pi*fo*t); %%
x = intlinprog(f,intcon,A,b,Aeq,beq,lb,ub);
When I try to solve this in matlab using default options, it tells me that no feasible solution exists. Then I removed the integer constraints and tried resolving it using linprog solver. It again tells me the same thing. I do not see any reason why this should happen.
I was just wondering if the reason for this might be the linear constraint b which is a sinusoidal? When I put b as a constant value, it solves the optimization problem.
Can someone please give me a bit more insight as to the reason of infeasibility in this case?
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 12월 23일
What are the mininum and maximum number of positive and negative entries in one row of the toeplitz matrix?
For example if all of the entries except for (say) 3 were negative, and the rest positive, then with your f being all negative 1, that could turn into a sum that could not feasibly be negative enough to satisfy the 5*sin() being as low as -5
Hafsa Farooqi
Hafsa Farooqi 2020년 12월 23일
@Walter, below are the first three rows of the Teoplitz matrix. It is like an lower triangular matrix. The entries are zeros or close to zero.
-4.38881148728960e-09 0 0 0 0 0 0 ...................................
0.000373969299993102 -4.38881148728960e-09 0 0 0 ...................................................
0.000981230594043130 0.000373969299993102 -4.38881148728960e-09 0 0 0 .............................................
0.00151783785076426 0.000981230594043130 0.000373969299993102 -4.38881148728960e-09 0 0 .............
Is there a way to deal with this issue in order to achieve feasibility?

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

답변 (2개)

Matt J
Matt J 2020년 12월 24일
편집: Matt J 2020년 12월 24일
Since your unknown x(i) are bounded between 0 and 1, an upper bound on abs(A*x) is sum(abs(A),2). It seems doubtful to me that sum(abs(A),2) for the matrix you've shown could ever exceed 5. Therefore A*x could never reach a value less than -5, which it would have to in order for A*x to be bounded from above by b=5.*sin(2*pi*fo*t).

Alan Weiss
Alan Weiss 2020년 12월 27일
You might find the following documentation useful:
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by