hello dear all.
i m testing cuopt server version method
“get_optimized_routes_sync”
i got some error :
AttributeError: ‘NoneType’ object has no attribute ‘cost_matrix’(cost_matrix_data.cost_matrix is not None)
at cuopt_amr_service.py : line 783, in get_optimized_routes_sync
so i check that python file in container
declear graph as
cost_waypoint_graph_data: Optional[UpdateWaypointGraphData] = None,
travel_time_waypoint_graph_data: Optional[UpdateWaypointGraphData] = None,
cost_matrix_data: Optional[UpdateCostMatrices] = None,
and check as like below
if (
cost_waypoint_graph_data.waypoint_graph is not None
and cost_matrix_data.cost_matrix is not None
):
when i send graph(only one catagory) ‘NoneType’ object has no attribute can happen always because i will send graph as one type
is that bug right?