和顺 / 衡律 返回所属 Agent
14.3

资产配置问题的计算表达

原能力

将配置问题明确为目标、变量和约束,不由模型隐含补充偏好。(合同附件 R7 14.3)

首选项目

CVXPY(Apache-2.0)。 CVXPY

匹配范围

目标、变量及约束表示组合计算。

源码

CVXPY · class Problem

cvxpy/problems/problem.py · 135–148 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
class Problem(u.Canonical):
    """A convex optimization problem.

    Problems are immutable, save for modification through the specification
    of :class:`~cvxpy.expressions.constants.parameters.Parameter`

    Arguments
    ---------
    objective : Minimize or Maximize
        The problem's objective.
    constraints : iterable
        The constraints on the problem variables.
    """
  • Copyright 2013 Steven Diamond, 2017 Akshay Agrawal

实现与验收要点

方法批准、数据输入、风险偏好和约束权源。