generated from cvxgrp/simulator
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test approx and test a mismatch * test approx and test a mismatch * use a Makefile approach * Add Constraints as enums * Fix tests * Fixes pre-commit * Improves error message * Fixes pre-commit * post rebase issues * Enums * Enums * Enums * more enum * more enum * more enum * more enum * less enum * less enum * less enum * less enum * less enum * less enum * fix examples * preparing for better updates * aux for updates * more testing * more testing * more testing * towards removing VariableName class * towards removing VariableName class * towards removing VariableName class * remove model import from __init__ * full test coverage * test cholesky * test cholesky for speed * testing linalg part * test aux * cleaning --------- Co-authored-by: Thomas Schmelzer <[email protected]> Co-authored-by: Thomas Schmelzer <[email protected]>
- Loading branch information
1 parent
5320a13
commit d8477ff
Showing
39 changed files
with
749 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import annotations | ||
|
||
from .model import Model | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
# see https://stackoverflow.com/a/54950492/1695486 | ||
|
||
|
||
class DataNames: | ||
RETURNS = "returns" | ||
MU = "mu" | ||
MU_UNCERTAINTY = "mu_uncertainty" | ||
CHOLESKY = "chol" | ||
VOLA_UNCERTAINTY = "vola_uncertainty" | ||
LOWER_BOUND_ASSETS = "lower_assets" | ||
LOWER_BOUND_FACTORS = "lower_factors" | ||
UPPER_BOUND_ASSETS = "upper_assets" | ||
UPPER_BOUND_FACTORS = "upper_factors" | ||
EXPOSURE = "exposure" | ||
HOLDING_COSTS = "holding_costs" | ||
IDIOSYNCRATIC_VOLA = "idiosyncratic_vola" | ||
IDIOSYNCRATIC_VOLA_UNCERTAINTY = "idiosyncratic_vola_uncertainty" | ||
SYSTEMATIC_VOLA_UNCERTAINTY = "systematic_vola_uncertainty" | ||
FACTOR_WEIGHTS = "factor_weights" | ||
WEIGHTS = "weights" | ||
_ABS = "_abs" | ||
|
||
|
||
class ModelName: | ||
RISK = "risk" | ||
RETURN = "return" | ||
BOUND_ASSETS = "bound_assets" | ||
BOUND_FACTORS = "bound_factors" | ||
|
||
|
||
class ConstraintName: | ||
BUDGET = "budget" | ||
CONCENTRATION = "concentration" | ||
LONG_ONLY = "long_only" | ||
LEVERAGE = "leverage" | ||
RISK = "risk" |
Oops, something went wrong.