public Interfaces.Results.SurgicalSpecialtyOperatingRoomAssignments.Iw GetElementsAt( IwResultElementFactory wResultElementFactory, IwFactory wFactory, Ijr jr) { return(wFactory.Create( jr.Value .Select( i => wResultElementFactory.Create( i.jIndexElement, i.rIndexElement, this.GetElementAt( i.jIndexElement, i.rIndexElement))) .ToImmutableList())); }
public ObjectiveFunction010( IObjectiveFactory objectiveFactory, Ijr jr, Iw w) { Expression expression = Expression.Sum( jr.Value .Select( x => w.Value[x.jIndexElement, x.rIndexElement])); Objective objective = objectiveFactory.Create( expression, ObjectiveSense.Minimize); this.Value = objective; }
public Ijr Create( ImmutableList <IjrCrossJoinElement> value) { Ijr crossJoin = null; try { crossJoin = new jr( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(crossJoin); }
public IObjectiveFunction010 Create( IObjectiveFactory objectiveFactory, Ijr jr, Iw w) { IObjectiveFunction010 objectiveFunction = null; try { objectiveFunction = new ObjectiveFunction010( objectiveFactory, jr, w); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(objectiveFunction); }