Thanks a lot.I have a set of constrains as below:(only x is the variable, others are all consts)
f = [];
for i = 1 : N
for j = 1 : K
sumy = 0;
sumx = 0;
tmp = 0;
for m = 1 : N
sumy = sumy + y(m,j);
end
for t = 1 : K
sumx = sumx + x(i,t);
end
for s = 1 : K
sumsy = 0;
for m = 1 : N
sumsy = sumsy + y(m,s);
end
tmp = tmp + B(i)*x(i,s)*p(i,s)*8*sumsy/(w(s)*10^3);
end
f = [f;(rt(i)*(B(i)*x(i,j)*sumy*8/(w(j)*10^3) + tc(i)*sumx) + ...
re(i)*(tmp + tc(i)*sumx*Pidle(i)) - rt(i)*tm(i) - re(i)*em(i))];
end
end
cause i need to use the lambda to generate a new constrain like this:

.
so i need to know the relations between the constrains and lambda, but this need to call fmincon directly.
My question is:
When directly call fmincon through matlab, the coefficients matrix of the linear constraints is hard to get, is there any good methods?