In the example below , the counter variable ( i ) is decreased by two each time the loop repeats 下面的举例中计数变量i每次循环后就会递减2 。
The genetic algorithm is applied to obtain the solution from the whole network by taking both switch state and capacitor set number as the control variables 提出用遗传算法从全局角度进行求解,将开关状态变量和电容器投切组数变量同时作为控制变量。