Originally posted by: BerkUstun
I am wondering if anyone knows how to remove display output from the CPLEX MATLAB API. I am currently using the CPLEX 12.2 API with the 64 bit version of MATLAB 2011a on Unix. I will illustrate an issue with the following example:
Say I create an LP object in MATLAB using:
LP = Cplex()
% Set LP.Model.A, LP.Model.lhs,LP.Model.rhs, LP.Model.ub, LP.Model.lb
When I try to solve this object with the solve method, CPLEX usually generates some output. That is:
>> LP.solve
Using devex.
Using devex.
Primal simplex solved model.
ans =
status: 1
statusstring: 'optimal'
time: 0.0217
objval: -60
x: [4x1 double]
method: 1
dual: [3x1 double]
ax: [3x1 double]
reducedcost: [4x1 double]
basis: [1x1 struct]
In the past, I could remove all of this output by replacing the Display Function with an empty matrix. That is
LP.DispFunction = []
Unfortunately, doing this now this only removes part of the output. When I now solve the LP, I still obtain:
Using devex.
Using devex.
Primal simplex solved model.
Does anyone know how to remove the remaining output? As a side note, using a semi-colon to suppress output does not resolve the issue (i.e. using "LP.solve;" instead of "LP.solve").
#CPLEXOptimizers#DecisionOptimization