Complexity / 2019 / Article / Alg 1

Research Article

Optimization for Nonlinear Uncertain Switched Stochastic Systems with Initial State Difference in Batch Culture Process

Algorithm 1

Master processor (Processor 0).
Require:
The experimental data such as , , ;
Ensure:
The value of and ;
1: Randomly generate particle positions, denoted by . Based on (34), compute the
constraint functions, denoted by , , , ;
2: for  each   do
3: if  ,  then
4: compute  ,  and move according to ,
until , with the search direction and the step-size selected by Armijo line search;
5: end if
6: end for
7: Solve system (23) by (47). Based on (25), compute the cost function, denoted by ,
and let , where ;
8: Let and broadcast , and , , to all Processors;
9: Let ;
10: for  ; ;   do
11: if  ( and )  then
12: return   and ;
13: end if
14: Let ;
15: for  ; ;   do
16: if    then
17: Let ;
18: Finish the loop and start the loop;
19: end if
20: Receive () the updated information of Processor during iteration , including and ;
21: if    then
22: Let and Broadcast () and the updated to all slave processors;
23: else
24: Broadcast () to all slave processors;
25: end if
26: end for
27: end for