try
{
Problem problem = new Problem(Solver_Type.Minimize, nvars, ncons);
problem.FcnConstraint.UpperBound.Array = rhs;
problem.Model.FcnQuadratic[Function_Type.Objective, 0] =
new DoubleMatrix(Array_Order.ByCol, nvars, nvars, qmatval);
}
catch (SolverException ex)
{
m_Log.Dump("Exception " + ex.ExceptionType);
m_Log.Dump("Exception " + ex.Message);
}
烦死你