Skip to content

Commit 387831d

Browse files
authored
Merge pull request #21 from ESMS-Group-Public/jakekrell-patch-1
FoKL 3.2.4
2 parents 5e2e902 + 17078d2 commit 387831d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FoKL/FoKLRoutines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,8 +1621,8 @@ def to_pyomo(self, m=None, y=None, x=None, **kwargs):
16211621
"is expected to be as the resulting symbolic expressions are too infeasible to solve. Use "
16221622
"the 'to_pyomo' method with a FoKL model trained on the 'Bernoulli Polynomials' kernel.")
16231623

1624-
m.fokl_expr = pyo.Expression(m.fokl_scenarios) # FoKL models (i.e., scenarios, draws)
1625-
symbolic_fokl(m) # may be better to write as rule
1624+
if m is None:
1625+
m = pyo.ConcreteModel()
16261626

16271627
m.fokl_scenarios = pyo.Set(initialize=range(current['draws'])) # index for scenario (i.e., FoKL draw)
16281628
m.fokl_y = pyo.Var(m.fokl_scenarios, within=pyo.Reals) # FoKL output

0 commit comments

Comments
 (0)