I have an optimization task defined as :
minimize varaince(result) subject to expectation(result) >=k
I have defined two functions : the first