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

Variable namespaces and naming conventions #66

Closed
whoburg opened this issue Sep 22, 2014 · 5 comments
Closed

Variable namespaces and naming conventions #66

whoburg opened this issue Sep 22, 2014 · 5 comments

Comments

@whoburg
Copy link
Collaborator

whoburg commented Sep 22, 2014

Should I be able to use V for velocity in one model, and V for voltage in another? How do we combine these models? How do we keep track of variable naming in a cross-organizational optimization model?

@bqpd
Copy link
Contributor

bqpd commented Sep 22, 2014

@whoburg will be making an aircraft example with a test system to which increasingly complex models are added, which may help us consider this issue.

@bqpd bqpd changed the title Variable name spaces Variable name spaces and naming conventions Oct 1, 2014
@bqpd
Copy link
Contributor

bqpd commented Oct 1, 2014

merging #65 into this and closing that one

@bqpd
Copy link
Contributor

bqpd commented Oct 1, 2014

@whoburg:
"
For example, in a drag model, should I create a variable D_fuselage? Or should I just put the (monomial) fuselage drag expression inside a larger posynomial? Do we offer a way for users to name terms in a posynomial? What is our recommendation for new users on best practices?

@bqpd says this is related to variable namespaces and locality.
"

@bqpd
Copy link
Contributor

bqpd commented Oct 1, 2014

do we want to create a special "objective" variable, or just encourage the user to put a single variable (perhaps inverted) as their objective function?

@bqpd bqpd changed the title Variable name spaces and naming conventions Variable namespaces and naming conventions Oct 1, 2014
@bqpd
Copy link
Contributor

bqpd commented Oct 24, 2014

  1. There's now a cost element of the GP solution.
  2. as variables are now VarKey objects, it was simple to implement a model attribute which distinguishes two variables, giving us namespace separation.

The main thing we're waiting for is an example importable model, now.

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

No branches or pull requests

2 participants