Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
日本語の概要は準備中です。原文の説明を表示しています。
Model OR-Tools paired pickup-and-delivery routing problems, including PDPTW, dial-a-ride, paratransit, patient transport, and courier jobs with same-vehicle pairing, precedence, capacity, optional connected service, rider time windows, and vehicle shifts.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Use this skill when each job has related pickup and dropoff or delivery events that must be served together. Apply it after the base routing model has a time dimension and before solving.
routing.AddPickupAndDelivery(pickup_index, dropoff_index) for each pair.routing.VehicleVar(pickup_index) == routing.VehicleVar(dropoff_index)time_dimension.CumulVar(pickup_index) <= time_dimension.CumulVar(dropoff_index)Use this pattern after adding the time dimension. It enforces the paired-service relationship for each job. Add optional-service logic separately after deciding whether jobs are independent pairs or members of connected request sets.
solver = routing.solver()
for job in jobs:
pickup_index = manager.NodeToIndex(job.pickup_node)
dropoff_index = manager.NodeToIndex(job.dropoff_node)
routing.AddPickupAndDelivery(pickup_index, dropoff_index)
solver.Add(routing.VehicleVar(pickup_index) == routing.VehicleVar(dropoff_index))
solver.Add(time_dimension.CumulVar(pickup_index) <= time_dimension.CumulVar(dropoff_index))
if job.dropoff_window is not None:
low, high = job.dropoff_window
time_dimension.CumulVar(dropoff_index).SetRange(low, high)
if job.pickup_window is not None:
low, high = job.pickup_window
time_dimension.CumulVar(pickup_index).SetRange(low, high)
max_cardinality=len(request_set) and a very large group penalty, such as len(request_set) * request_penalty. This makes pickup service drive the served-job objective for the connected set.The complete modeling shape for connected optional pickup-delivery service is:
solver = routing.solver()
for job in jobs:
pickup_index = manager.NodeToIndex(job.pickup_node)
dropoff_index = manager.NodeToIndex(job.dropoff_node)
routing.AddPickupAndDelivery(pickup_index, dropoff_index)
solver.Add(routing.VehicleVar(pickup_index) == routing.VehicleVar(dropoff_index))
solver.Add(time_dimension.CumulVar(pickup_index) <= time_dimension.CumulVar(dropoff_index))
for request_set in connected_request_sets:
pickup_indices = [manager.NodeToIndex(job.pickup_node) for job in request_set]
routing.AddDisjunction(
pickup_indices,
len(request_set) * request_penalty,
len(request_set),
)
for job in jobs:
routing.AddDisjunction([manager.NodeToIndex(job.dropoff_node)], 0)
For all-or-none grouped service, perform the following post-processing steps after extracting raw route order:
def complete_group_job_ids(groups, visited_nodes):
complete = set()
for group in groups:
# group jobs expose job_id, pickup_node, and dropoff_node.
if all(job.pickup_node in visited_nodes and job.dropoff_node in visited_nodes for job in group):
complete.update(str(job.job_id) for job in group)
return complete
def kept_service_nodes(route, complete_job_ids):
return [
stop.node
for stop in route.stops
if stop.kind in {"pickup", "dropoff"} and str(stop.job_id) in complete_job_ids
]
After filtering, audit the rebuilt sequence from scratch; do not reuse arrival times, loads, shortcut feasibility, depot-return feasibility, or served counts from the unfiltered route.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
日本語の概要は準備中です。原文の説明を表示しています。
AC branch pi-model power flow equations (P/Q and |S|) with transformer tap ratio and phase shift, matching `acopf-math-model.md` and MATPOWER branch fields. Use when computing branch flows in either direction, aggregating bus injections for nodal balance, checking MVA (rateA) limits, computing branch loading %, or debugging sign/units issues in AC power flow.
日本語の概要は準備中です。原文の説明を表示しています。
Redact text from PDF documents for blind review anonymization
日本語の概要は準備中です。原文の説明を表示しています。
Use when checking simplified ADA-derived plan-view bathroom accessibility constraints such as turning space, door clear width, toilet centerline, grab bars, and lavatory knee/toe clearance.
日本語の概要は準備中です。原文の説明を表示しています。
Analyze failed GitHub Action jobs for a pull request.
日本語の概要は準備中です。原文の説明を表示しています。
Use when extracting plan-view architectural geometry from DXF files with semantic CAD layers, especially when outputs must normalize rooms, doors, fixtures, clearances, and grab bars into machine-checkable JSON.
日本語の概要は準備中です。原文の説明を表示しています。