optigob.resource_manager

Submodules

Classes

LivestockOptimisation

Package Contents

class optigob.resource_manager.LivestockOptimisation(solver='cplex_direct')
solver = 'cplex_direct'
solve_optimiser(emissions_budget, dairy_beef_ratio, year, scenario, scalers_file)

Set up and solve the optimisation model.

Parameters: emissions_budget: Total allowable emissions. dairy_beef_ratio: Ratio of dairy animals to beef animals (e.g., 10 for a 10:1 ratio). year: Year to select the correct row from the CSV. scenario: Abatement scenario to determine the scalers block. scalers_file: CSV file containing the scaler table.

Returns: Optimal units (in 10,000 animals) for beef and dairy, and total number of animals.