or-fusion / pyomo_simplemodel

An extension of Pyomo that defines a simple modeling class that is similar to PuLP
Other
6 stars 6 forks source link

Allows dummy objective expressions (#7) #8

Closed amarvin closed 5 years ago

whart222 commented 5 years ago

Can you provide a test case that illustrates the use of this? I'm not sure what a motivating example would be.

The appveyor test failures appear unrelated to this functionality. I'm not sure, but they may have been failing for a while.

amarvin commented 5 years ago

Good idea @whart222, I just added an example with a dummy objective function. If the objective function is a constant (in this case a float of 1.0), the check of this expression fails when trying to read the is_relational attribute that doesn't exist in the float object.

amarvin commented 5 years ago

All these checks should pass, once #10 is merged.

amarvin commented 5 years ago

Can this update and new test be merged?

whart222 commented 5 years ago

The test failures appear un-related, so I'm approving this PR.