Hi Melinda,
Although this thread is quite old, I wanted to follow-up on it. I guess what Curt tried to say, is if you could provide a sample code. I've tried what you said with a script, imported that script into ModelBuilder and then connected the output to a Solve Tool. That did not work for me.
I first tested the script on its own. The process doesn't cause any error, but when accessing the properties of the Location-Allocation Layer through the top bar, nothing has changed.
Here's my code and below the Script Property Settings:
import arcpy, os
#Get Parameter values
LALayer = arcpy.GetParameter(0)
FacilityNum = arcpy.GetParameter(1)
Cutoff = arcpy.GetParameter(2)
Type = arcpy.GetParameterAsText(3)
TMode = arcpy.GetParameter(4)
#Update Location-Allocation Layer
p = arcpy.na.GetSolverProperties(LALayer)
p.applyTravelMode(TMode)
p.facilitiesToFind = FacilityNum
p.impedance = "Length"
p.impedanceCutoff = Cutoff
p.problemType = Type
#Set parameters
arcpy.SetParameter(5, LALayer)