<div dir="ltr">Hi All,<div>I&#39;m working on network flow problem. </div><div>Right now the program gives the optimal solution when all the constraints can be satisfied. </div><div>But, when I adjust the input, e.g., increase the demand value (commodity need to be transmitted) such that the edge capacities can&#39;t afford. The infeasible using primal() or dual() will output a solution with exceeding the edge capacities but satisfies the demand (flow conservation constraints). </div><div>But what I want is a best effort solution that guarantee the capacity constraints but not the demand constraints. </div><div>I tried to change the sequence I added the constraint rows, while this doesn&#39;t work. I think clp has its own fixed strategy to decide which constraints can be violated and which can&#39;t. </div><div>Is there any way that I can specify the priorities the solution should satisfy the constraints? i.e., when there is no optimal solution, the output solutions should first satisfy the higher priority constraints and then the lower priority ones. </div><div><br></div><div>FYI, glpk will give me the best effort solution in my case, which is different from clp. </div><div><br></div><div>Thanks all,</div><div>Emer</div></div>