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

Parameter expressions can't reference other parameters when creating a model #435

Closed
BryanRumsey opened this issue Sep 3, 2020 · 2 comments · Fixed by #630
Closed

Parameter expressions can't reference other parameters when creating a model #435

BryanRumsey opened this issue Sep 3, 2020 · 2 comments · Fixed by #630
Assignees
Labels
enhancement New feature or request ✔️​ Issue / PR has been resolved
Milestone

Comments

@BryanRumsey
Copy link
Contributor

No description provided.

@briandrawert
Copy link
Member

Example: K1 = 2*K2

So you could have:

k1 = Parameter("k1", expression="1");
k2 = Parameter("k2", expression="2*k1");
model.add_paramter([k1,k2]);

then the value of "k2" will be "2"

@briandrawert
Copy link
Member

Parameter.evaluate() should be renamed to Parameter._evaluate()

@JoshuaFisherC JoshuaFisherC linked a pull request Oct 21, 2021 that will close this issue
@BryanRumsey BryanRumsey added the enhancement New feature or request label Oct 22, 2021
@BryanRumsey BryanRumsey added the ✔️​ Issue / PR has been resolved label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ✔️​ Issue / PR has been resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants