routing problem optimization code

조회 수: 5 (최근 30일)
Mostafa
Mostafa 2023년 1월 1일
댓글: Torsten 2023년 1월 2일
i have a graph with nodes and links and each link have two weights ( number of people and time) and i want to find a circular route start and end at specified node the circular route should have max number of people and don't exceed a specifed time limit
  댓글 수: 2
Torsten
Torsten 2023년 1월 1일
편집: Torsten 2023년 1월 1일
What about conditions on the route ? Each node must be visited ? Each node on the route can only be visited once ?
Mostafa
Mostafa 2023년 1월 1일
편집: Mostafa 2023년 1월 1일
it is not necessary to visit each node and each node can be visited only one time

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2023년 1월 1일
  댓글 수: 3
Mostafa
Mostafa 2023년 1월 1일
Thanks alot
Torsten
Torsten 2023년 1월 2일
If you can't implement the dynamic programming approach, use a linear optimization tool (e.g. linprog).
If you can't implement the problem in linprog, generate all cycles starting and ending in your specified node and choose the optimal one.
If you can't generate all cycles starting and ending in your specified node, well, then it's time to study a book on the subject.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by