Yalmip constraint problem -using function ceil and abs

1 Ansicht (letzte 30 Tage)
StellaWang
StellaWang am 18 Jan. 2017
Bearbeitet: Stephen23 am 18 Jan. 2017
I am working on mip problem using yalmip-cplex to solve the problem.
yjt=intvar(T,Nst,'full');
xikt=binvar(n,10,T,'full');
Here is my constraint:
for t=1:T
for k=1:10
Constraint=Constraint+[xikt(:,k,t)==ones(30,1,1)-ceil(abs(Wijt(:,:,t)*yjt(t,:)'-(k-1))/1000)];
end
end
I find that this constraint does not work when I use yalmip cplex to solve the problem. Is this because of the function ceil or abs which I use?Or some other reasons? The same code works fine using GA algorithm.
Appreciate if someone can tell me the reasons and solutions. Thanks.

Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by