This can be planned using 0-1, assuming matrix p>
x31 x32 x33 x34
B=(1,2,3,4)' (' is transpose)
s.t. Sum (XB)=4< /p>
Write the target function yourself