mtp {CompModels}R Documentation

The modified Townsend function

Description

This function evaluates the objective and constraint functions for the modified Townsend function.

Usage

mtp(x1, x2)

Arguments

x1

A scalar value between -2.25 and 2.5, inclusive

x2

A scalar value between -2.5 and 1.75, inclusive

Value

The evaluation of running the modified Townsend function at input pair (x1, x2).

Note

A solution is feasible when the constraint function is less than or equal to 0.

Examples

### 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)

[Package CompModels version 0.2.0 Index]