I have defined set

**W**and parameter

**Coef(W)**as follows:

Code: Select all

```
Set W /1*10/;
Parameter Coef(W);
```

**randomly**assign binary values to

**Coef(W)**; where about %A of elements in

**W**get 1, and %(100-A) of them get 0. For instance, if A is equal to 70, therefore,

**Coef(W)**could be one of the following arrays:

Code: Select all

```
[1 1 0 1 1 0 1 1 0 1]
or
[0 1 1 1 0 0 1 1 1 1]
or
...
```

Kind regards,

Amirhossein