Maximum Box Volume
vol a b
,
(
)
a b
2
⋅
:=
<=
Maximize Volume
g
1
a b
,
(
)
2 a
⋅
2 b
⋅
+
11
−
:=
<= Constraint 1
g
2
a b
,
(
)
2 a
⋅
b
+
8.5
−
:=
<= Constraint 2
Optimization problems are written in terms of
minimizing the objective function.
In order to
maximize box volume, minimize the negative
the volume:
f(a,b) = -vol(a,b)
To use the exterior penalty function method,
write the objective function and the constraints
in the form of a single pseudo-objective function.
R
5
:=
p a b
,
(
)
vol a b
,
(
)
−
R
Φ
g
1
a b
,
(
)
(
)
⋅
g
1
a b
,
(
)
2
⋅
+
R
Φ
g
2
a b
,
(
)
(
)
⋅
g
2
a b
,
(
)
2
⋅
+
:=
p
a
1
:=
b
1
:=
minimize p a
,
b
,
(
)
1.962
3.923
⎛
⎜
⎝
⎞
⎟
⎠
=

This ** preview** has intentionally

**sections.**

*blurred***to view the full version.**

*Sign up*