A function that removing boundary points after newton's method.
weight2(opt, x, t, g_part, w0, infor_design, ...)Matrix, an optimal design
Integer. opt=0 means D-optimal, opt=1 means A-optimal.
Matrix, a design returned by weight1.
Integer. Number of levels of treatment.
Matrix. Contrast matrix. Its column numbers must match the row number of information matrix.
Numeric Vector. Initial weights.
Function. A function for calculating information matrix.
other necessary control parameters