Skip to content

PyNumero NLP interfaces allow setting primals/duals with vectors of incorrect length #2052

Open
@carldlaird

Description

@carldlaird

Summary

PyNumero NLP interfaces allow one to call set_primals or set_duals with a vector of length 1 even if there are more variables in the problem.

Steps to reproduce the issue

$ command1 [options]
$ command2 [options]
...
# example.py
import pyomo.environ
...

Error Message

$ # Output message here, including entire stack trace, if available

Information on your system

Pyomo version:
Python version:
Operating system:
How Pyomo was installed (PyPI, conda, source):
Solver (if applicable):

Additional information

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions