Hi ,
I am using docplex.mp and trying to get the duals of a relaxed model.
I am trying to use the method get_duals(), however I am having trouble with the argument it needs.
So I have a model, mdl, and I relaxed it and called the new model mdl2. Now, I try to do the following:
c = mdl2.get_constraint_by_index(0)
mdl2.get_duals(cts), # edit : mdl2.get_duals(c)
however I receive the following error message:
TypeError: 'LinearConstraint' object is not iterable
Any ideas how to fix this?
best,
#DecisionOptimization