Skip to content

Cannot do simple scalar variable multiplication... #685

@anyacastillo

Description

@anyacastillo

I am unable to multiply numpy.float64 * SimpleVar, but I am able to multiply SimpleVar * numpy.float64. The error is as follows:

KeyError: "Cannot treat the scalar component 'x'as an indexed component"

where 'x' is of type pyomo.core.base.var.SimpleVar.

I am using Pyomo 5.5.1. Do we have support for numpy parameters in the models?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions