JakenVeina
JakenVeina
CC#
Created by ApathyErr on 4/9/2024 in #help
Why can't I use the null propagation operator in lambda expressions?
oCustomersMail = customers.Any()
? customers.First(c => c.CustomerId == o.CustomerId).Mail
: "Не найдено",
oCustomersMail = customers.Any()
? customers.First(c => c.CustomerId == o.CustomerId).Mail
: "Не найдено",
10 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
why doesn't the algorithm calculate either of those values?
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
you say you have to take the duration of the backwards path and subtract it from the "total project duration"
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
why is it doing something completely different?
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
why is your algorithm not doing that?
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
you described how to get your intended "latest start time" for V1 => V4
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
what is it that you DO what?
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
if that's not what you want, well
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
so, you get a latest start time of 1
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
the duration of V1 => V3 is 4
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
for the V1 => V3 activity, the earliest start time for V3, according to your table, is 5
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
foreach (var activity in activities)
{
var latestStartTime = earliestStartTimes[activity.To] - activity.Duration;
if (!latestStartTimes.ContainsKey(activity.From) || latestStartTimes[activity.From] > latestStartTime)
{
latestStartTimes[activity.From] = latestStartTime;
}
}
foreach (var activity in activities)
{
var latestStartTime = earliestStartTimes[activity.To] - activity.Duration;
if (!latestStartTimes.ContainsKey(activity.From) || latestStartTimes[activity.From] > latestStartTime)
{
latestStartTimes[activity.From] = latestStartTime;
}
}
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
and using that as the latest start time, for that activity
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
subtracting the duration of the current activity
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
it's retrieving the earliest start time of the next node
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
your algorithm is working exactly as you told it to
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
so
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
with "on time" being defined by the shortest total path within the project
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
"latest start time" being "the latest that this can be started and still complete on time"
62 replies
CC#
Created by maroonlol on 12/23/2023 in #help
✅ Solve please delete this post
okay, so
62 replies