MCPcopy Create free account
hub / github.com/Open-Quant/openquant / default

Method default

crates/openquant/src/portfolio_optimization.rs:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20//!
21//! Conventions:
22//! - Weights are fully invested (`sum w = 1`) and long-only by default (`0 <= w_i <= 1`).
23//! [`AllocationOptions::tuple_bounds`] sets `(lo, hi)` for every asset and
24//! [`AllocationOptions::bounds`] overrides it per asset index. Upper bounds above 1 are
25//! treated as 1.
26//! - Price matrices are `T x N`: rows are dates in ascending order, columns are assets. From
27//! prices, returns are **simple** returns `p_t / p_{t-1} - 1`, and the expected returns

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected