I am working on transportation problem (TP) and i encounter a problem solving it with CPLEX (using C language).
I want to solve several TP and I want to use the same data from earlier TP formulation and use it for solve other TP (this way saving computational time). The initial data is the same for all the TP, only changing (adding or deleting) a warehouse from the problem data, maintaining always the set of costumers.
I try to use CPXcopylp for copying the original problem (with all warehouse opened) and I use the CPXchgobj for setting to 0 the coefficient of the objective function, the CPXdelrows dor deleting rows, CPXdelrows for deleting columns and the CPXchgcoef for setting to 0 the cofficient of the constraints.
After optimize the problem, the variable that I deleted appear in the solution and I cannot read and understand this solution.