@@ -37,13 +37,14 @@ type LinearDynamicLinearCostSPmodel <: SPModel
3737 dynamics:: Function
3838 noises:: Vector{NoiseLaw}
3939
40- finalCost:: Function
40+ finalCost
4141
42- equalityConstraints:: Function
43- inequalityConstraints:: Function
42+ equalityConstraints
43+ inequalityConstraints
4444
45-
46- function LinearDynamicLinearCostSPmodel (nstage, ubounds, x0, cost, dynamic, aleas, Vfinal= nothing , eq_constr= nothing , ineq_constr= nothing )
45+ function LinearDynamicLinearCostSPmodel (nstage, ubounds, x0,
46+ cost, dynamic, aleas, Vfinal= nothing ,
47+ eqconstr= nothing , ineqconstr= nothing )
4748
4849 dimStates = length (x0)
4950 dimControls = length (ubounds)
@@ -62,7 +63,8 @@ type LinearDynamicLinearCostSPmodel <: SPModel
6263 push! (xbounds, (- Inf , Inf ))
6364 end
6465
65- return new (nstage, dimControls, dimStates, dimNoises, xbounds, ubounds, x0, cost, dynamic, aleas, Vf, eq_constr, ineq_constr)
66+ return new (nstage, dimControls, dimStates, dimNoises, xbounds, ubounds,
67+ x0, cost, dynamic, aleas, Vf, eqconstr, ineqconstr)
6668 end
6769end
6870
@@ -83,12 +85,14 @@ type PiecewiseLinearCostSPmodel <: SPModel
8385 costFunctions:: Vector{Function}
8486 dynamics:: Function
8587 noises:: Vector{NoiseLaw}
86- finalCost:: Function
88+ finalCost
8789
88- equalityConstraints:: Function
89- inequalityConstraints:: Function
90+ equalityConstraints
91+ inequalityConstraints
9092
91- function PiecewiseLinearCostSPmodel (nstage, ubounds, x0, costs, dynamic, aleas, Vfinal= nothing , eq_constr= nothing , ineq_constr= nothing )
93+ function PiecewiseLinearCostSPmodel (nstage, ubounds, x0, costs, dynamic,
94+ aleas, Vfinal= nothing , eqconstr= nothing ,
95+ ineqconstr= nothing )
9296 dimStates = length (x0)
9397 dimControls = length (ubounds)
9498 dimNoises = length (aleas[1 ]. support[:, 1 ])
@@ -103,7 +107,8 @@ type PiecewiseLinearCostSPmodel <: SPModel
103107 for i = 1 : dimStates
104108 push! (xbounds, (- Inf , Inf ))
105109 end
106- return new (nstage, dimControls, dimStates, dimNoises, xbounds, ubounds, x0, costs, dynamic, aleas, Vf, eq_constr, ineq_constr)
110+ return new (nstage, dimControls, dimStates, dimNoises, xbounds, ubounds,
111+ x0, costs, dynamic, aleas, Vf, eqconstr, ineqconstr)
107112 end
108113end
109114
0 commit comments