2using System.Collections.Generic;
3using System.Runtime.Serialization;
4using System.ComponentModel;
16 #region APIResource Interface Members
23 #endregion APIResource Interface Members
25 #region Public Properties
73 #region Endpoints and Sub-Resources
75 #region Private Fields
87 #endregion Private Fields
113 #endregion Endpoints and Sub-Resources
119 [
Obsolete(
"2018-04-23: The initial_portfolio_metrics attribute is deprecated, " +
120 "please use initial_portfolio_result instead.")]
128 [
Obsolete(
"2018-04-23: This endpoint is being deprecated because it isn't scalable. " +
129 "The preferred method is now to paginate the /candidates/ endpoint or to " +
130 "download the entire results set as a .csv file via the /csv/ endpoint.")]
133 DefaultTimeout = API.DefaultRequestTimeoutCollections
135 #endregion Deprecated
136 #endregion Public Properties
149 base.AfterMembersCloned(
_);
152 _initialPortfolioResult =
null;
153 _sensitivityAnalysis =
null;
155 #endregion Constructor
157 #region Public Methods
209 #endregion Public Methods
Attribute used to define the default value assigned to the target_currency property by the server whe...
Base class used by all types and resources.
Describes an additional data sub-resource available off a resource. Endpoint supports GET and PUT.
Describes a collection of resources which can be listed.
Base class for a StoredAPIResource that has a "status" property and corresponding "status_message" wh...
Specifies that a property is generated by the server and should not be specified on the client side d...
A candidate is a potential solution to the optimization problem.
A sub-collection of candidate results that exists off of an OptimizationView resource.
Object to map metrics on the initial portfolio.
Representation of a set of Optimization Parameters.
int iterations
The maximum number of iterations to perform during the optimization.
DataSubResource csv
Allows retrieval of the YLT (Year Loss Table) associated with this view once it has been simulated.
SubResource< CandidateResultsList > result
Get the result of this OptimizationView. Will return a 503 with a Retry-After if not ready.
static readonly string CLASS_COLLECTION_NAME
The collection endpoint at which resources of this type reside on the server.
SubResource< OptimizationResult > initial_portfolio_result
Once this optimization's run has completed, this will contain the objective, constraint,...
IReference< AnalysisProfile > analysis_profile
The optimizations's analysis profile.
OptimizationView()
Construct a new OptimizationView with empty domain and custom_parameters lists.
Dictionary< string, object > custom_parameters
A key/value pair dictionary of additional parameters taken by the optimization function.
PortfolioView GetCandidatePortfolioView(int candidateIndex, int? timeout_ms=null)
Retrieves a PortfolioView corresponding to the specified candidate portfolio result,...
OptimizationResult GetInitialPortfolioMetrics(int? timeout_ms=null)
Retrieves the initial portfolio metrics, which contain the objective, constraint, and feasibility res...
int population_size
The population size to use in the optimization.
SubResource< SensitivityAnalysis > sensitivity_analysis
Once an optimization run has completed, this endpoint can be used to perform a sensitivity analysis o...
Candidates candidates
A collection of optimization result from this Optimization run. Will return a 503 with a Retry-After ...
Dictionary< string, double > initial_portfolio_metrics
Once this optimization's run has completed, this will contain the objective metrics' results for the ...
long GetCandidateResultsCount(int? timeout_ms=null)
Retrieves the number of candidate results produced by this optimization run. Note that you can also g...
string target_currency
The currency that this optimization's results should be returned in.
Candidate GetCandidateResult(int candidateIndex, int? timeout_ms=null)
Retrieves the specified candidate portfolio result, which contains its metrics (objective,...
SensitivityAnalysis GetSensitivityAnalysis(IEnumerable< int > candidates=null, int? timeout_ms=null)
Retrieves sensitivity analysis metrics, which contain the min, max, mean share, normalized standard d...
override string collection_name
The collection endpoint at which resources of this type reside on the server.
List< DomainEntry > domains
The list of layers to be optimized and their min/max constraints.
override void AfterMembersCloned(APIType _)
Invoked following construction if the current instance has been created using a member-wise clone of ...
double progress
The fractional progress made in completing this optimization, as a number between 0 and 1 (where 1 me...
RunTime runtime_seconds
The optimization run time.
Sensitivity analysis for the optimization view.
Represents the Analysis of a Portfolio.
Helper class which makes it easier to build a set of request parameters.
User-friendly representation of the numeric optimization runtime_seconds field. Wraps a nullable doub...
Interface for resources that reference an analysis profile.