Professional Documents
Culture Documents
Name :YUKTHASHREE
G
USN- 19BSR18029
BSc DSA , 6th sem
1.OPTIMIZATIO
N USING R
# using lpSolve
require(lpSolve)
# Add constraints
add.constraint(lprec, b[1, ], "<=", c[1])
add.constraint(lprec, b[2, ], "<=", c[2])
add.constraint(lprec, b[3, ], "<=", c[3])
add.constraint(lprec, b[4, ], ">=", c[4])
sp500
B)The sp500 is a stock market index that tracks the stocks of 500 large-cap companies. It represents the stock
market's performance by reporting the risks and returns of the biggest companies. Investors use it as the benchmark
of the overall market, to which all other investments are compared.
S&P stands for Standard and Poor, the names of the two founding financial companies.