Learn R Programming

CompModels (version 0.3.0)

bbox1: A black-box computer model

Description

A black-box computer model that evaluates the objective and constraint functions for a given input value.

Usage

bbox1(x1, x2)

Value

The evaluation of running the black-box computer model at input (x1, x2).

  • obj: A scalar objective function value

  • con: A vector of constraint function values

Arguments

x1

A scalar value between -1.5 and 2.5, inclusive

x2

A scalar value between -3 and 3, inclusive

Examples

Run this code
### Running the black-box computer model at x1 = 1, x2 = 2
### obj = -1.5 and con = (-3.5,-0.25)
### (x1,x2) = (1,2) is a feasible solution

bbox1(1,2)

Run the code above in your browser using DataLab