Learn R Programming

CompModels (version 0.3.0)

mtp: The modified Townsend function

Description

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

Usage

mtp(x1, x2)

Value

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

Arguments

x1

A scalar value between -2.25 and 2.5, inclusive

x2

A scalar value between -2.5 and 1.75, inclusive

Examples

Run this code
### 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