Scénario de test & Cas d'usage
Network analysis and graph algorithms.
Discover all actions of optNetworkSimulation of a large production line (1000 steps) with a forced massive loop (Step 1000 loops back to Step 1).
| 1 | |
| 2 | DATA mycas.production_flow; |
| 3 | LENGTH process_id next_id $10; |
| 4 | DO i=1 to 1000; |
| 5 | process_id = "Step_"||strip(put(i,best.)); |
| 6 | next_id = "Step_"||strip(put(i+1,best.)); |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | process_id="Step_1001"; |
| 10 | next_id="Step_1"; |
| 11 | OUTPUT; |
| 12 | |
| 13 | RUN; |
| 14 |
| 1 | |
| 2 | PROC CAS; |
| 3 | optNetwork.cycle RESULT=r STATUS=s / direction="DIRECTED" links={name="production_flow"} linksVar={from="process_id", to="next_id"} maxTime=60 timeType="REAL" out={name="ProductionLoops", replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The action successfully identifies the large loop within the 60-second limit. The 'solutionStatus' in the results should indicate 'OK' or 'TIME_LIMIT_REACHED' if the graph was too large, but a result must be returned.