powered by
This function evaluates the objective and constraint functions for the modified Townsend function.
mtp(x1, x2)
The evaluation of running the modified Townsend function at input pair (x1, x2).
obj: A scalar objective function value
con: A scalar constraint function value
A scalar value between -2.25 and 2.5, inclusive
A scalar value between -2.5 and 1.75, inclusive
### Running the modified Townsend function at x1 = 1 and x2 = 0.8 ### obj = 0.9073035 and con = 2.012166 ### (x1,x2) = (1,1) is not a feasible solution mtp(1,1)
Run the code above in your browser using DataLab