search for: triskellconstraint

Displaying 1 result from an estimated 1 matches for "triskellconstraint".

Did you mean: triskellconstraints
2009 Feb 05
2
Non-linear optimisation
...If there are any Matlab/R specialists out there, I would appreciate your help in doing the exact same optimisation in R. I suspect I would use nlm() in R but am not sure where to define my constraints. I have attached my Matlab code below for reference. Many thanks. Constraints function [c,ceq]=TriskellConstraints(X) global objFunc_vol; [a,b] = objFunc_vol(X); c(1) = b-6.5; c(2) = std(X(:))-6.5; ceq = []; end Optimise global objFunc_vol objFunc_vol = @(C) compute_strategy_before_fees(prices, C, floor, cap, m_ret_reb, prices_TR, hedge_fund, vg, euribor, last_reb_date, Maturity, fixed_fees, var_fees); objFu...