同样,实例化泛型类的客户机类必须使用满足对构造函数存在所声明的约束的类来这样做。
Also, client classes that instantiate our generic class must do so with classes that meet the declared constraint on what constructors exist.
Scala对构造函数的约束有一些好处。
There are a few advantages of Scala’s constraints on constructors.
这个约束强制任何类型'T '都必须具有无参数的公共构造函数。
This constraint forces any type 't' to have a default constructor, that is, a constructor that takes no parameters.
这常常会导致类泛滥成灾,在这种情况下,约束应当在类的行为中实现,通常是在构造函数中实现,但不是必须如此。
Often this will lead to a proliferation of classes, in which case the constraint must be implemented in the behavior of the class-usually, but not necessarily, in the constructor.
基于模糊判决原理,兼顾模糊目标和模糊约束的最优性隶属程度,构造判决函数;
Based on the fuzzy decision prin-cipsel, the optimal membership degrees of the fuzzy objectives and constraints are considered, and then the decision function is constructed.
该文利用凸优化理论和约束优化理论为前馈神经网络构造出了一个新的优化目标函数。
The paper constructs a new optimal target function for feed forward neural networks according to convex optimization theory and constraint optimization theory.
并对约束条件的处理和适应度函数的构造进行了研究,给出了算法的基本步骤和流程框图。
Then study the constraints handling, construction of fitness function and the algorithms basal steps and flow chart is given.
构造了一种无参数罚函数,并用这种无参数罚函数方法求解约束最优控制问题,最后举例以说明.。
The method of parameter-free penalty function is discussed and used here to solve the constrained optimal control problem; Finally an example is cited in illustration of the theory…
构造了一种无参数罚函数,并用这种无参数罚函数方法求解约束最优控制问题,最后举例以说明.。
The method of parameter-free penalty function is discussed and used here to solve the constrained optimal control problem; Finally an example is cited in illustration of the theory…
应用推荐