Playground RST¶
To retrieve a list of random ingredients,
you can use the lumache.get_random_ingredients()
function:
- lumache.get_random_ingredients(kind=None)¶
Return a list of random ingredients as strings.
- Parameters:
kind (list[str] or None) – Optional “kind” of ingredients.
- Raises:
lumache.InvalidKindError – If the kind is invalid.
- Returns:
The ingredients list.
- Return type:
list[str]
##.. autoclass:: cobraInit.CobraInitializer ## :members: __init__, adCon, get_xbest, get_fbest ## :no-index:
- cobraInit.CobraInitializer.__init__(self, x0, fn: object, fName: str, lower: ~numpy.ndarray, upper: ~numpy.ndarray, is_equ: ~numpy.ndarray, solu=None, s_opts: ~opt.sacOptions.SACoptions = <opt.sacOptions.SACoptions object>) object
- cobraInit.CobraInitializer.get_fbest(self)
Return the original objective function value at the best feasible solution.
Note: We cannot take the best function value via
sac_res['fn']
, because this may be modified by PLOG or others.
\(\mathbb{R}^n\)
This: \((x+a)^3\)
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]