// //Integer planning command //This command solves restrict condition by integer value. // //Syntax intplan [variables] by [condition letter variable] [condition variable] // //Example 1 / hand x1 x2 cond val/ 4 5 MAX 0 7 3 <= 70 3 4 <= 39 5 8 <= 75 ; //Execute interger plan solution intp x1 x2 by cond val; //View integer output.
// //Example 2 is optimization of the napsuck problem. // hand x1 - 7 cond val/ 9 30 21 15 23 28 7 MAX 0 1 8 6 9 15 24 21 <= 34 1 0 0 0 0 0 0 <= 1 0 1 0 0 0 0 0 <= 1 0 0 1 0 0 0 0 <= 1 0 0 0 1 0 0 0 <= 1 0 0 0 0 1 0 0 <= 1 0 0 0 0 0 1 0 <= 1 0 0 0 0 0 0 1 <= 1 ; //Execute integer plan solution intp x1 - 7 by cond val; //View selection of napsuck for optimize amount.