.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/assisted/plot_b06everything.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_assisted_plot_b06everything.py: Combine many specifications: exception is raised ================================================ We combine many specifications, defined in :ref:`everything_spec_section`. This leads to a total of 432 specifications. When the total number of specifications exceeds 100, Biogeme raises an ValueOutOfRange exception when the estimate_catalog is called. See `Bierlaire and Ortelli (2023) `_. Michel Bierlaire, EPFL Sun Apr 27 2025, 15:57:10 .. GENERATED FROM PYTHON SOURCE LINES 16-20 .. code-block:: Python from biogeme.biogeme import BIOGEME from biogeme.exceptions import BiogemeError .. GENERATED FROM PYTHON SOURCE LINES 21-22 See :ref:`everything_spec_section`. .. GENERATED FROM PYTHON SOURCE LINES 22-24 .. code-block:: Python from everything_spec import database, model_catalog .. GENERATED FROM PYTHON SOURCE LINES 25-26 Create the Biogeme object. .. GENERATED FROM PYTHON SOURCE LINES 26-29 .. code-block:: Python the_biogeme = BIOGEME(database, model_catalog, generate_html=False, generate_yaml=False) the_biogeme.model_name = 'b06everything' .. GENERATED FROM PYTHON SOURCE LINES 30-32 Estimate the parameters. It does not work as there are too many specifications .. GENERATED FROM PYTHON SOURCE LINES 32-36 .. code-block:: Python try: dict_of_results = the_biogeme.estimate_catalog() except BiogemeError as e: print(e) .. rst-class:: sphx-glr-script-out .. code-block:: none There are too many [432] different specifications for the log likelihood function. This is above the maximum number: 100. Simplify the specification, change the value of the parameter maximum_number_catalog_expressions, or consider using the AssistedSpecification object in the "biogeme.assisted" module. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.257 seconds) .. _sphx_glr_download_auto_examples_assisted_plot_b06everything.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_b06everything.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_b06everything.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_b06everything.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_