Skip to content

Changing CALVIN to explicitly set within values for all params#6

Open
nickrsan wants to merge 1 commit intomasterfrom
pyomo-within-type-change
Open

Changing CALVIN to explicitly set within values for all params#6
nickrsan wants to merge 1 commit intomasterfrom
pyomo-within-type-change

Conversation

@nickrsan
Copy link
Member

removes warning from Pyomo about deprecation change moving defaults from "Any" to "Reals"

@msdogan, @mlmaskey, and @jdherman - making a patch to UCM CALVIN to change the keyword arguments to Param objects. Pyomo 5.6.9+ - this could slightly change behavior, but would be more explicit and futureproof for Pyomo 6.0 - thoughts on using within=Reals vs. within=Any here?

removes warning from Pyomo about deprecation change moving defaults from "Any" to "Reals"
@msdogan
Copy link

msdogan commented Apr 4, 2021

@nickrsan we use within=Reals for decision variable model.X = Var(model.A, within=Reals). It should not create problems for parameters, I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants