Use simil-Breeze syntax, for example: math.pow(math.max(coeffs.dot([votes(anna, demo), votes(bob, demo), friends(anna, bob)]) - constant, 0),2) *weight Allow arbitrary functions, the user is responsible to check that they are convex.
Use simil-Breeze syntax, for example:
math.pow(math.max(coeffs.dot([votes(anna, demo), votes(bob, demo), friends(anna, bob)]) - constant, 0),2) *weight
Allow arbitrary functions, the user is responsible to check that they are convex.