If you want the dual multipliers to either the LP relaxation or (if it is a MILP rather than a pure IP) the dual multiplier to the restricted problem where the integer variables are fixed, that can be done via Java API calls. If you want the actual dual model (not just its solution) to the LP relaxation, I think you will need to build it manually. See this thread for a related question. Even if you managed to automate the conversion (say, by exporting the model, calling the interactive optimizer in a shell, converting to the dual and reimporting that), you would still have to work out the association between dual model elements and primal problem elements (which dual variable/constraint corresponds to which primal constraint/variable).
Paul
#CPLEXOptimizers#DecisionOptimization