public ObjectiveFunction100( IObjectiveFactory objectiveFactory, Imr mr, IC C, Iv v) { Expression expression = Expression.Sum( mr.Value .Select( x => (double)C.GetElementAtAsdecimal( x.mIndexElement) * v.Value[x.mIndexElement, x.rIndexElement])); Objective objective = objectiveFactory.Create( expression, ObjectiveSense.Minimize); this.Value = objective; }