Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pretty printing and speedups (#1408)
- prettier printing - ordered printing - new printing conventions (model.submodel.variable, variable[index]) - exclude unnecessary lineage in constraint and table printing - print full list of constraints for named models - use unicode strings and literals - speedups - gp.gen() - x0 generation for SPs - algebra via pint operation caching - python 3 consistent ordering fixes
- Loading branch information
Showing
64 changed files
with
1,001 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
BoundsChecking | ||
============== | ||
|
||
# minimize | ||
F | ||
# subject to | ||
F >= D + T | ||
D = Ap*V**2*rf | ||
Ap = nu | ||
T = V*mf | ||
mf >= mb + mi | ||
mf = V*rf | ||
Fs <= mi | ||
Cost | ||
---- | ||
F | ||
|
||
Constraints | ||
----------- | ||
F >= D + T | ||
D = rf*V^2*Ap | ||
Ap = nu | ||
T = mf*V | ||
mf >= mi + mb | ||
mf = rf*V | ||
Fs <= mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Getting the only var 'E': E_PowerSystem/Battery [MJ] | ||
The top-level var 'm': m_PowerSystem [lb] | ||
All the variables 'm': [gpkit.Variable(m_PowerSystem [lb]), gpkit.Variable(m_PowerSystem/Battery [lb]), gpkit.Variable(m_PowerSystem/Motor [lb])] | ||
Getting the only var 'E': PowerSystem.Battery.E [MJ] | ||
The top-level var 'm': PowerSystem.m [lb] | ||
All the variables 'm': [gpkit.Variable(PowerSystem.Battery.m [lb]), gpkit.Variable(PowerSystem.Motor.m [lb]), gpkit.Variable(PowerSystem.m [lb])] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.