Good morning y'all, i hope you are doing good today,
I've uploaded the attached spreadsheet. I've got the following case:
The first column shows the stock price at maturity S(T). For each of these stock prices we compute the payoffss for all the options we hold. Columns B-J contain the payoffs for each option at increasing strikes (Row 1) from 10 to 90. The cell formulas (Array B6:J14) multiple the payoffs per single option by the number of options held for each strike. The number of options held is stored in the row titled “Number” (Row 4). This row is where the Solver should choose the number of options of each strike to hold so as to make the payoff profile in the second last column (K) match the target profile (L) in the last column (therefor, the constraint should that column K=L). Row 2 (respectively Row 2) represents if the number of options in row for corresponds to a call or a put (call = 1 means, that its a call and vice versa). This should be picked up as an indicator variable by the solver.
My problem now is that I can't get the solver to solve a complete row at once.
This is where I'd love to get your assistance on, thanks in advance!
Cheers
Jules
Bookmarks