MCPcopy Create free account
hub / github.com/cvanaret/Uno / objective

Function objective

interfaces/Python/example/example_hs015.py:8–10  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

6
7# hs015.mod
8def objective(x):
9 # the modeler should throw an exception if the function cannot be evaluated
10 return 100.*(x[1] - x[0]**2)**2 + (1. - x[0])**2
11
12def constraints(x, constraint_values):
13 # the modeler should throw an exception if the function cannot be evaluated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected