Framing the problem:
- provide a function to minimize
- provide an initial guess for X
- call the optimizer
因?yàn)镾R越大越好,而優(yōu)化是找最小值始藕。
X的每個(gè)維度是每只股票分配比例憨颠。
Ranges and constraints:
- Ranges: Limits on values for
- Comstrains: properties of X that must be "true"