Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add option to not provide an initial solution when creating variables #477

Open
rb004f opened this issue Nov 20, 2024 · 2 comments

Comments

@rb004f
Copy link
Collaborator

rb004f commented Nov 20, 2024

Is your feature request related to a problem? Please describe.
I have talked with some users who have indicated that it is not always desirable to provide an initial solution for all variables in a problem definition, Currently, many of the variable functions look for a foo_start in the data dictionary, and if not present, a hard coded value is used as an initial value.

Describe the solution you'd like
The request is to consider adding an option to the variable functions to turn off providing an initial solution. This is pervasive across the InfrastructureModels packages, so it may also be considered elsewhere.

Describe alternatives you've considered
N/A

Additional context
N/A

@pseudocubic
Copy link
Collaborator

Often it is possible (or in some cases enabled by default) for the solver to ignore the start value of the variables. Is there an example that you can give where this is not sufficient for your needs?

@rb004f
Copy link
Collaborator Author

rb004f commented Nov 21, 2024

The specific use case that cropped came from using Knitro, where the user wanted to give an initial solution for a subset of the variables (specifically the binary variables) but not provide an initial solution for the other variables. Since no start values are provided, 0 is set as an initial solution. Kintro checks the initial solution for feasibility, which it is not, and then throws away the entire initial solution. The user tried this outside of PMD (giving a partial solution) and got the desired behavior.

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

No branches or pull requests

2 participants