public IConstraints15ConstraintElement Create( IaIndexElement aIndexElement, IrIndexElement rIndexElement, Isk sk, ILength Length, IORday ORday, ITPz z) { IConstraints15ConstraintElement constraintElement = null; try { constraintElement = new Constraints15ConstraintElement( aIndexElement, rIndexElement, sk, Length, ORday, z); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(constraintElement); }
public IORday Create( ImmutableList <IORdayParameterElement> value) { IORday parameter = null; try { parameter = new ORday( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(parameter); }
public Constraints15ConstraintElement( IaIndexElement aIndexElement, IrIndexElement rIndexElement, Isk sk, ILength Length, IORday ORday, ITPz z) { Expression LHS = Expression.Sum( sk.Value .Select( i => z.Value[i.sIndexElement, aIndexElement, rIndexElement, i.kIndexElement] * (double)Length.GetElementAtAsdecimal( i.kIndexElement))); double RHS = (double)ORday.GetElementAtAsdecimal( aIndexElement, rIndexElement); this.Value = LHS <= RHS; }