# {py:mod}`evorl.ec.evox_algorithm.cso` ```{py:module} evorl.ec.evox_algorithm.cso ``` ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso :parser: autodoc2_docstrings_parser :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`CSO ` - ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO :parser: autodoc2_docstrings_parser :summary: ``` * - {py:obj}`CSOState ` - ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState :parser: autodoc2_docstrings_parser :summary: ``` ```` ### API `````{py:class} CSO :canonical: evorl.ec.evox_algorithm.cso.CSO Bases: {py:obj}`evox.Algorithm` ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO :parser: autodoc2_docstrings_parser ``` ````{py:method} ask(state) :canonical: evorl.ec.evox_algorithm.cso.CSO.ask ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.ask :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} dim :canonical: evorl.ec.evox_algorithm.cso.CSO.dim :type: int :value: > 'pytree_field(...)' ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.dim :parser: autodoc2_docstrings_parser ``` ```` ````{py:method} init_ask(state) :canonical: evorl.ec.evox_algorithm.cso.CSO.init_ask ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.init_ask :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} init_std :canonical: evorl.ec.evox_algorithm.cso.CSO.init_std :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.init_std :parser: autodoc2_docstrings_parser ``` ```` ````{py:method} init_tell(state, fitness) :canonical: evorl.ec.evox_algorithm.cso.CSO.init_tell ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.init_tell :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} lb :canonical: evorl.ec.evox_algorithm.cso.CSO.lb :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.lb :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} phi :canonical: evorl.ec.evox_algorithm.cso.CSO.phi :type: float :value: > 0.0 ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.phi :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} pop_size :canonical: evorl.ec.evox_algorithm.cso.CSO.pop_size :type: int :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.pop_size :parser: autodoc2_docstrings_parser ``` ```` ````{py:method} setup(key) :canonical: evorl.ec.evox_algorithm.cso.CSO.setup ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.setup :parser: autodoc2_docstrings_parser ``` ```` ````{py:method} tell(state, fitness) :canonical: evorl.ec.evox_algorithm.cso.CSO.tell ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.tell :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} ub :canonical: evorl.ec.evox_algorithm.cso.CSO.ub :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSO.ub :parser: autodoc2_docstrings_parser ``` ```` ````` `````{py:class} CSOState :canonical: evorl.ec.evox_algorithm.cso.CSOState ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState :parser: autodoc2_docstrings_parser ``` ````{py:attribute} fitness :canonical: evorl.ec.evox_algorithm.cso.CSOState.fitness :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState.fitness :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} key :canonical: evorl.ec.evox_algorithm.cso.CSOState.key :type: jax.random.PRNGKey :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState.key :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} population :canonical: evorl.ec.evox_algorithm.cso.CSOState.population :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState.population :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} students :canonical: evorl.ec.evox_algorithm.cso.CSOState.students :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState.students :parser: autodoc2_docstrings_parser ``` ```` ````{py:attribute} velocity :canonical: evorl.ec.evox_algorithm.cso.CSOState.velocity :type: jax.Array :value: > None ```{autodoc2-docstring} evorl.ec.evox_algorithm.cso.CSOState.velocity :parser: autodoc2_docstrings_parser ``` ```` `````