Hi,
The attached example "ProblemTest.m" illustrates a situation in which when run with an objective, the solver (Mosek or Gurobi) reports it is infeasible, but when run without it reports a feasible solution.
To run the file, you just need to have the "ProblemWorkspace.mat" file in the same folder you are running from.
Note also that the objective is bounded below, as the objective is given by:
Objective = -( sum( Switch ) * numel( Buffer ) * 10 + sum( Buffer(:) ) );
where Switch is a vector with elements equal to 1, 0 or -1, and Buffer is a vector with elements all less than 0.5.
Do you have any idea what is causing this? I expect it is to do with the fact that Switch is defined as:
Switch = sign( Buffer - 1e-4 );
Do you have any suggestions for a work-around? I have solved many similar problems without issue.
Thanks in advance,
Tom