2
$\begingroup$

I have a MILP problem that requires knowing the number of nodes within a cycle (there will be multiple depending on inputs). I believe this will involve tracing nodes/values within cycles using the node-arc matrix, but I am unsure how to construct the mathematical formulation to do so.

I am required to use MATLAB and Gurobi solver.

How do I accomplish this?

$\endgroup$
1
  • $\begingroup$ Trace the path until you hit the same node as the starting node. $\endgroup$ Jun 28, 2022 at 15:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.