'How to maximise an function in vb.net?

I have a function T which I'm wanting to maximise:

T = (B((A + 1.646) + 0.583 w) + 311)((1 + ((R + 0.553) + 0.0389 x)((D) + 0.0389 y)

with the constraints

w + x + y + z = 25
w >= 0
x >= 0
y >= 0
z >= 0

B, A, R, D are all constants.

How would I go about doing this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source