| Functions | |
| def | markowitz (I, sigma, r, alpha) | 
| Variables | |
| float | alpha = 1.05 | 
| int | EPS = 1.e-6 | 
| I | |
| def | model = markowitz(I, sigma, r, alpha) | 
| r | |
| sigma | |
| def | x = model.data | 
| def markowitz_soco.markowitz | ( | I, | |
| sigma, | |||
| r, | |||
| alpha | |||
| ) | 
markowitz -- simple markowitz model for portfolio optimization.
Parameters:
    - I: set of items
    - sigma[i]: standard deviation of item i
    - r[i]: revenue of item i
    - alpha: acceptance threshold
Returns a model, ready to be solved.
 
Definition at line 11 of file markowitz_soco.py.
References pyscipopt.expr.quicksum().
| float alpha = 1.05 | 
Definition at line 48 of file markowitz_soco.py.
| int EPS = 1.e-6 | 
Definition at line 54 of file markowitz_soco.py.
| I | 
Definition at line 41 of file markowitz_soco.py.
| r | 
Definition at line 41 of file markowitz_soco.py.
| sigma | 
Definition at line 41 of file markowitz_soco.py.
| def x = model.data | 
Definition at line 53 of file markowitz_soco.py.