Interface PortfolioOptimizationAlgorithm.SymbolLookup

  • Enclosing interface:
    PortfolioOptimizationAlgorithm

    public static interface PortfolioOptimizationAlgorithm.SymbolLookup
    Provides a lookup for product symbols and indices.
    • Method Detail

      • getSymbol

        String getSymbol​(int index)
        Gets the symbol of the product at a given index (starts from 1).
        Parameters:
        index - the index of the product (starts from 1)
        Returns:
        the symbol of the product
      • getIndex

        int getIndex​(String symbol)
        Gets the index (starts from 1) of the product with a given symbol.
        Parameters:
        symbol - the symbol of the product
        Returns:
        the index of the product (starts from 1); -1 if the symbol is not found