.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/mdcev_no_outside_good/gamma_specification.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_mdcev_no_outside_good_gamma_specification.py: File gamma_specification.py Michel Bierlaire, EPFL Fri Jul 25 2025, 16:35:52 Specification of the "gamma_profile" MDCEV model. .. GENERATED FROM PYTHON SOURCE LINES 8-37 .. code-block:: Python from biogeme.expressions import Beta from biogeme.mdcev import GammaProfile from specification import baseline_utilities, weight # % # Gamma parameters. Must be positive. lowest_positive_value = 0.0001 gamma_shopping = Beta('gamma_shopping', 1, lowest_positive_value, None, 0) gamma_socializing = Beta('gamma_socializing', 1, lowest_positive_value, None, 0) gamma_recreation = Beta('gamma_recreation', 1, lowest_positive_value, None, 0) gamma_personal = Beta('gamma_personal', 1, lowest_positive_value, None, 0) scale_parameter = Beta('scale', 1, lowest_positive_value, None, 0) gamma_parameters = { 1: gamma_shopping, 2: gamma_socializing, 3: gamma_recreation, 4: gamma_personal, } the_gamma_profile = GammaProfile( model_name='gamma_profile', baseline_utilities=baseline_utilities, gamma_parameters=gamma_parameters, scale_parameter=scale_parameter, weights=weight, ) .. _sphx_glr_download_auto_examples_mdcev_no_outside_good_gamma_specification.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: gamma_specification.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gamma_specification.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gamma_specification.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_