I try to Append the vector S by z+x whereby z and x are calculated before. I somehow fail to extract x and z in the right way from the maximization problem. For some reason the standard solutions I found in the internet didn't work ( I probably failed to apply them correctly...)
S = {}; For[n = 3, n <= 10, n += 1, y = NMaximize[{z, n* x*z <= 1, x > 1/2} , {x, z}] ; AppendTo[S, [z + x], n] ;] It would be great, if you could write the correct syntax into the code.