916633dc965ef9c074ea883f8146d785e2a9c4bd,examples2/g02.py,,,#,27
Before Change
from mystic.constraints import as_constraint
cf = as_constraint(pf)
if __name__ == "__main__":
After Change
-prod([x0, x1, x2]) + 0.75 <= 0.0
sum([x0, x1, x2]) - 7.5*3 <= 0.0
cf = generate_constraint(generate_solvers(simplify(equations)))
pf = generate_penalty(generate_conditions(equations))
if __name__ == "__main__":
bounds = bounds(len(xs))
from mystic.solvers import diffev2
from mystic.math import almostEqual
result = diffev2(objective, x0=bounds, bounds=bounds, constraints=cf, penalty=pf, npop=40, disp=False, full_output=True)
assert almostEqual(result[0], xs, rel=1e-2)
assert almostEqual(result[1], ys, rel=1e-2)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 13
Instances
Project Name: uqfoundation/mystic
Commit Name: 916633dc965ef9c074ea883f8146d785e2a9c4bd
Time: 2015-09-28
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: examples2/g02.py
Class Name:
Method Name:
Project Name: uqfoundation/mystic
Commit Name: 916633dc965ef9c074ea883f8146d785e2a9c4bd
Time: 2015-09-28
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: examples2/g09.py
Class Name:
Method Name:
Project Name: uqfoundation/mystic
Commit Name: 916633dc965ef9c074ea883f8146d785e2a9c4bd
Time: 2015-09-28
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: examples2/g01.py
Class Name:
Method Name:
Project Name: uqfoundation/mystic
Commit Name: 916633dc965ef9c074ea883f8146d785e2a9c4bd
Time: 2015-09-28
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: examples2/vessel.py
Class Name:
Method Name:
Project Name: uqfoundation/mystic
Commit Name: 916633dc965ef9c074ea883f8146d785e2a9c4bd
Time: 2015-09-28
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: examples2/g06.py
Class Name:
Method Name: