Originally posted by: John Cui
Could you please try below code and tell me the cplex.Solution?
>> cplex=Cplex()
ans=
Cplex handle
Properties:
Model: [1x1 struct]
Param: [1x1 struct]
DisplayFunc: @disp
Methods, Events, Superclasses
>> cplex.addCols(1)
ans=
Cplex handle
Properties:
Model: [1x1 struct]
Param: [1x1 struct]
DisplayFunc: @disp
Methods, Events, Superclasses
>> cplex.addRows(1,1,1)
ans=
Cplex handle
Properties:
Model: [1x1 struct]
Param: [1x1 struct]
DisplayFunc: @disp
Methods, Events, Superclasses
>> cplex.solve
ans =
status: 1
statusstring: 'optimal'
time: 0
objval: 1
x: 1
method: 2
dual: 1
ax: 1
reducedcost: 0
basis: [1x1 struct]
>> cplex.Solution.dual
ans =
1
You can see we have cplex.Solution.dual
#CPLEXOptimizers#DecisionOptimization