Question 1:
I use CPLEX in YALMIP (matlab), and set "verbose" to 0 as follows:
options = sdpsettings('verbose',0,'solver','cplex');
solvesdp(Constraints, Objective, options);
However, I still get a lot of output in the command window of matlab (there is a line of message when a constraint is added, and in my model I need to add at least 100 000 constraints. In other words, I need to wait maybe 10 minutes for the output, and then the model can be solved). How can I have NO output on the screen?
Question 2:
I would like to check whether my model is wrong (due to programming typos), and hence I would like to output the model to a file:
options = sdpsettings('verbose',0,'solver','cplex');
model = 'model.lp';
recoverymodel = 'recoverymodel.lp';
[model, recoverymodel] = export(Constraints, Objective,options);
However, no file is generated using the above codes, and how should I get a file containing the model?