Originally posted by: Nomykan
Hi Alex,
Your response is always very helpful... thanks for such a quick response. Also i have one more question. i have solved the problem and have optimal solution but only the last constraint is not satisfied. as far i know the problem lies here. i have lines from a certain node to another node as shown in the network picture.
{line} Lines={<1, 2>, <2, 3>, <1, 4>, <2, 4>, <4, 5>, <5, 6>, <3, 6>};
now if i solve the problem it gives error but when i add the opposite of the lines like <2, 1>, <3, 2> then it works. in the solution i get values for lines like 2-3=0, 3-2=50. i want it to 2-3 and 3-2 to be considered as one line and the value is positive or negative depending on the flow like
1-2= +ve value if it is from 2-1,
2-1= -ve value if it is from 1-2.
in this case if i have only lines that are mentioned in the Lines tuple , then the last constraint will be satisfied. can you help me in this regard what is the issue and how can it be fixed.
Again thanks for such a helpful response.
#DecisionOptimization#MathematicalProgramming-General