Hi there,
I'm modelling the two objective functions below and would like to make sure that I'm doing so correctly.
In both problems, I'm trying to minimize the sum of the differences between two values, given that the first value in both equations is a constant (p and f, respectively), and the second value is the decision variable (m and x, respectively).
Am I actually modelling them correctly in YALMIP? Does the first value get ignored in the optimization because it's a constant? I'm confused and would like some help please. Thanks :)
constraint = [b < p - x < p,
sum ( x ) == Q_req,
0 < x <= r_max];
for i = 1:customers
obj = obj + utility(i, f(i)) - utility(i, x(i));
end
options = sdpsettings('verbose',2);
sol = solvesdp(constraint,obj,options);