Skip to content

Data Command File Param: Default only #1573

@rhshadrach

Description

@rhshadrach

When I write code to produce a data command file and there is a parameter with a default value, I only write out the parameters that do not equal the default value. This leaves me with the edge case where all parameters are equal to the default value, in which case I write out something like this:

param A default 0.0 := ;

Pyomo doesn't seem to like this though. I was able to get it to work by using .:

param A default 0.0 := . .;

for a 1-dim parameter, but perhaps it would be nice if the former were supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions