Solve the System of Equations Using the Simulated Annealing Algorithm
You can solve the system of equations using the simulated annealing algorithm.
- Create a 3D Shape.
-
From the
Tools section, click
Formula
and create six
real
type parameters. Assign a name to these parameters: x1, y1, z1 and x2, y2, z2. - From the Compass, click 3D Modeling Apps and select Design Optimization, and click Optimization .
-
In the
Constraints tab, specify the three
constraints (enter the constraints one by one)
x1 + y1 - z1 == 0 x1*y1 - z1 == 0 sin(x1*1rad)**2 - y1 - 1 == 0
. For more information, see the Design Optimization User's Guide.-
Enter
x1 + y1 - z1 == 0
-
Enter
x1*y1 - z1 == 0
-
Enter
sin(x1*1rad)**2 - y1 - 1 == 0
- Specify a precision of 0.01 for all three constraints.
-
Enter
-
In the
Problem tab, click
Edit List to specify
x1
,y1
,z1
as free parameters. - Click Edit ranges and step to specify the step value, 1 in this example.
- Select Only Constraints from the Optimization type list.
-
Run the optimization process in
Simulated Annealing Algorithm mode. You can
use the default termination criteria.
After the process has finished running, the x1, y1 and z1 values are close to the one below:
x1 = 0.454
y1 = -0.807
z1 = -0.363
Keep your 3D Shape open and proceed to the next section.