use of org.matheclipse.core.convert.Expr2LP in project symja_android_library by axkr.
the class NMinimize method getConstraints.
protected static List<LinearConstraint> getConstraints(VariablesSet vars, IExpr listOfconstraints) {
Expr2LP x2LP;
List<LinearConstraint> constraints = new ArrayList<LinearConstraint>();
IAST andAST = (IAST) listOfconstraints;
for (int i = 1; i < andAST.size(); i++) {
x2LP = new Expr2LP(andAST.get(i), vars);
constraints.add(x2LP.expr2Constraint());
}
return constraints;
}
Aggregations