CESFunctions.CESProductionMethod
CESProduction(σ, A)

A constant elasticity of substitution production function of the form

\[Y = (A_1 X_2^{(σ-1)/σ} + A_2 X_2^{(σ-1)/σ} + ...)^{σ/(σ-1)}\]

where $σ$, the elasticity of substitution, is required to be positive.

Alternative parametrizations use a substitution parameter $ρ = (σ - 1)/σ$.

About the type

Fields σ and A of the result are part of the public API.

Base.length can be used to query the length on both values and types.

julia> F = CESProduction(0.1, (0.2, 0.8))
CESProduction{2, Float64}(0.1, (0.2, 0.8))

julia> length(F)
2

julia> length(typeof(F))
2
CESFunctions.input_demandsMethod
input_demands(F, input_prices, output_quantity)
input_demands(
    F,
    input_prices,
    output_quantity,
    output_price
)

Calculate the input demands from input prices (Tuple or SVector) and the output quantity. The output_price can be provided for faster calculations, otherwise is calculated.

CESFunctions.output_priceMethod
output_price(F, input_prices)

Calculate the output price from input prices (Tuple or SVector).