Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
Module: meridian.analysis.optimizer
Stay organized with collections
Save and categorize content based on your preferences.
Module to output budget optimization scenarios based on the model.
Classes
class BudgetOptimizer
: Runs and outputs budget optimization scenarios on your model.
class FixedBudgetScenario
: A fixed budget optimization scenario.
class FlexibleBudgetScenario
: A flexible budget optimization scenario.
class OptimizationGrid
: Optimization grid information.
class OptimizationResults
: The optimized budget allocation.
Functions
get_optimization_bounds(...)
: Get optimization bounds from spend and spend constraints.
get_round_factor(...)
: Gets the number of integer digits to round off of budget.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eThis module facilitates budget optimization scenarios derived from a given model.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBudgetOptimizer\u003c/code\u003e class executes and presents budget optimization scenarios based on the model's data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOptimizationResults\u003c/code\u003e class contains the outcomes of the budget allocation optimization process.\u003c/p\u003e\n"]]],[],null,["\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/analysis/optimizer.py) |\n\nModule to output budget optimization scenarios based on the model.\n\nClasses\n\n[`class BudgetOptimizer`](../../meridian/analysis/optimizer/BudgetOptimizer.md): Runs and outputs budget optimization scenarios on your model.\n\n[`class FixedBudgetScenario`](../../meridian/analysis/optimizer/FixedBudgetScenario.md): A fixed budget optimization scenario.\n\n[`class FlexibleBudgetScenario`](../../meridian/analysis/optimizer/FlexibleBudgetScenario.md): A flexible budget optimization scenario.\n\n[`class OptimizationGrid`](../../meridian/analysis/optimizer/OptimizationGrid.md): Optimization grid information.\n\n[`class OptimizationResults`](../../meridian/analysis/optimizer/OptimizationResults.md): The optimized budget allocation.\n\nFunctions\n\n[`get_optimization_bounds(...)`](../../meridian/analysis/optimizer/get_optimization_bounds.md): Get optimization bounds from spend and spend constraints.\n\n[`get_round_factor(...)`](../../meridian/analysis/optimizer/get_round_factor.md): Gets the number of integer digits to round off of budget."]]