Description
Return component-weighted milk value.
Animal feed, milk and scaling terms require explicit dry-matter, energy, component and body-size bases. Empirical coefficients and caller-supplied prices are not universal biological laws. An intake or cost estimate does not select a diet, predict health or establish an appropriate intervention.
Return component-weighted milk value.
When to use this tool
Use Milk Fat Protein Weighted Price Term when checking the stated intake, composition, cost or allometric convention.
How to use the tool and how it works
- Enter milkMass, fatFraction, proteinFraction, basePrice, fatPrice, proteinPrice. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read fatValue, proteinValue, totalValue. Use the output convention below.
Return component-weighted milk value. Require nonnegative milk mass/prices and fat/protein fractions in [0,1] with sum <= 1; fat/protein values use component mass, total adds base price per whole milk mass.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| milkMass | Milk Mass | Required. Finite number; minimum 0. |
| fatFraction | Fat Fraction | Required. Finite number; minimum 0; maximum 1. |
| proteinFraction | Protein Fraction | Required. Finite number; minimum 0; maximum 1. |
| basePrice | Base Price | Required. Finite number; minimum 0. |
| fatPrice | Fat Price | Required. Finite number; minimum 0. |
| proteinPrice | Protein Price | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| fatValue | Fat Value | Required. Finite number. |
| proteinValue | Protein Value | Required. Finite number. |
| totalValue | Total Value | Required. Finite number. |
{
"input": {
"milkMass": 100,
"fatFraction": 0.04,
"proteinFraction": 0.03,
"basePrice": 0.2,
"fatPrice": 2,
"proteinPrice": 3
},
"output": {
"fatValue": 8,
"proteinValue": 9,
"totalValue": 37
}
} Limitations and assumptions
- The pricing convention and rates are supplied; actual composition, commercial terms and product quality are not verified.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use verified animal/feed measurements, the intended validated model and qualified veterinary/nutrition advice for care or feeding decisions.
References
Similar or alternative tools
- Milk Component Price Base Flag
Return milk pricing mass under a component-basis policy.
- Feed Dry Matter Cost Factor
Return feed cost per dry-matter mass.