pressure {CompModels} | R Documentation |
The pressure vessel computer model
Description
The pressure vessel computer model is designed to minimize the total cost of constructing a pressure vessel considering the cost of material, forming, and welding. The four inputs to the computer model are the thickness of the shell (x1), the thickness of the head (x2), the inner radius (x3), and the length of the cylindrical section of the vessel (x4) not including the head. Note, the thicknesses of the variables are integer multiples of 0.0625 inches. The cost of the pressure vessel is subject to four constraints.
Usage
pressure(x1, x2, x3, x4)
Arguments
x1 |
A scalar value between 0 and 99, inclusive, controlling the thickness of the shell. |
x2 |
A scalar value between 0 and 99, inclusive, controlling the thickness of the head. |
x3 |
A scalar value between 0 and 200, inclusive, controlling the inner radius. |
x4 |
A scalar value between 0 and 200, inclusive, controlling the length of the cylindrical section of the vessel (x4) not including the head. |
Value
The evaluation of running the tension spring computer model at input (x1, x2, x3).
obj: A scalar objective function value
con: A vector of constraint function values
Note
A solution is feasible only if of all of the constraint functions values are less than or equal to 0.
Examples
### Running the function at x1 = 10, x2 = 4, x3 = 21, x4 = 24.
### obj = 55536.1 and con = (-10.4053, -20.77104, 1219107.94901, -216)
### (x1,x2,x3,x4) = (10,4,21,24) is not a feasible solution
pressure(10,4,21,24)