0001 function cba_constraints = cba_update_constraints(cba_constraints,Next)
0002
0003
0004
0005 cba_constraints.dmu_min(cba_constraints.dmu_sign>0) = 0;
0006 cba_constraints.dmu_max(cba_constraints.dmu_sign<0) = 0;
0007
0008 if length(cba_constraints.z_ext),
0009 zv = Next' * cba_constraints.z_ext + cba_constraints.z_int;
0010 else,
0011 cba_constraints.z_ext = zeros(size(Next,1),1);
0012 zv = cba_constraints.z_int;
0013 end
0014
0015 if isfield(cba_constraints,'zv'),
0016 if length(cba_constraints.zv),
0017 if sum(zv ~= cba_constraints.zv)
0018 warning('Changing existing entry zv');
0019 end
0020 end
0021 end
0022
0023 cba_constraints.zv = zv;
0024
0025 cba_constraints = fba_update_constraints(cba_constraints);
0026