omni_pig_average_daily_gain
Calculates swine average daily gain, days to market weight, feed intake, feed cost, and annual barn turnover from placement and target weights, ADG, and FCR.
Instructions
Swine Nursery Feed Intake & Average Daily Gain (ADG) Calculator. Calculate Average Daily Gain (ADG), days to market weight (280 lbs), and total feed consumed for commercial swine grow-finish operations. Discipline: AGRICULTURE. Governing mathematical model / formula: ADG (lbs/day) = (Final Weight - Placement Weight) / Days on Feed | Feed Intake = ADG × FCR.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of days_to_market_weight (Days on Feed to Market), total_feed_consumed_pig (Total Feed Eaten Per Pig), feed_cost_per_market_hog (Feed Cost Per Finished Hog (@ $290/T)), barn_annual_turnover (Annual Barn Group Turns) using placement_feeder_pig_weight (Nursery Placement Weight (lbs) in lbs), target_slaughter_weight (Target Market Weight (lbs) in lbs), measured_adg_lbs_day (Average Daily Gain (ADG lbs/day) in lbs/day), swine_feed_conversion_ratio (Feed Conversion Ratio (FCR)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Swine Nursery Feed Intake & Average Daily Gain (ADG) Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "pig-average-daily-gain"
category (string): "agriculture"
name (string): "Swine Nursery Feed Intake & Average Daily Gain (ADG) Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.days_to_market_weight (Days on Feed to Market): Formatted display string (e.g. '118 Days')
metrics.total_feed_consumed_pig (Total Feed Eaten Per Pig): Formatted display string (e.g. '632.5 lbs Feed')
metrics.feed_cost_per_market_hog (Feed Cost Per Finished Hog (@ $290/T)): Formatted display string (e.g. '$91.71 / pig')
metrics.barn_annual_turnover (Annual Barn Group Turns): Formatted display string (e.g. '2.8 Turns / Year')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_pig_average_daily_gain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| measured_adg_lbs_day | No | Average Daily Gain (ADG lbs/day) (lbs/day). Typical grow-finish ADG = 1.80 - 2.10 lbs/day. Default: 1.95. Min: 1.2. Max: 2.5. | |
| target_slaughter_weight | No | Target Market Weight (lbs) (lbs). Packing plant target liveweight. Default: 280. Min: 220. Max: 330. | |
| placement_feeder_pig_weight | No | Nursery Placement Weight (lbs) (lbs). Piglet weight entering grower barn. Default: 50. Min: 12. Max: 90. | |
| swine_feed_conversion_ratio | No | Feed Conversion Ratio (FCR). Grow-finish FCR (typically 2.6 - 2.9). Default: 2.75. Min: 2.2. Max: 3.6. |