brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
skill-141Tools for managing time-based planning problems in PDDL domains, focusing on task scheduling and resource allocation.
Independent GitHub snapshot · Automated classification · Original documentation governs
load-scheduling-problem(domain_path, problem_path)Description:
Loads a PDDL domain file and problem file for scheduling tasks, creating a scheduling problem instance.
Parameters:
domain_path (str): Path to the PDDL domain file.problem_path (str): Path to the PDDL problem file.Returns:
scheduling_problem: A scheduling problem object.Example:
scheduling_problem = load_scheduling_problem("scheduling_domain.pddl", "tasks_to_schedule.pddl")
Notes:
unified_planning.io.PDDLReader.generate-schedule(scheduling_problem)Description: Generates a schedule for the specified planning problem based on task timings and deadlines.
Parameters:
scheduling_problem: A scheduling problem instance.Returns:
schedule: A list of scheduled tasks with timing.Example:
schedule = generate_schedule(scheduling_problem)
Notes:
unified_planning.shortcuts.Scheduler.save-schedule(schedule, output_path)Description: Writes the generated schedule to a file in a specified format suitable for scheduling applications.
Parameters:
schedule: A list of scheduled tasks.output_path (str): Path where the schedule will be saved.Example:
save_schedule(schedule, "scheduled_tasks.txt")
Notes:
validate-schedule(scheduling_problem, schedule)Description: Validates that the generated schedule meets the task requirements and deadlines specified in the problem.
Parameters:
scheduling_problem: The scheduling problem.schedule: The generated schedule.Returns:
Example:
is_valid = validate_schedule(scheduling_problem, schedule)
Notes:
unified_planning.shortcuts.SchedulingValidator.# Load scheduling problem
scheduling_problem = load_scheduling_problem("scheduling_domain.pddl", "tasks_to_schedule.pddl")
# Generate schedule
schedule = generate_schedule(scheduling_problem)
# Validate schedule
if not validate_schedule(scheduling_problem, schedule):
raise ValueError("Generated schedule is invalid")
# Save schedule
save_schedule(schedule, "scheduled_tasks.txt")