MCPcopy Create free account
hub / github.com/cmower/optas / evaluate_cost

Method evaluate_cost

optas/solver.py:269–280  ·  view source on GitHub ↗

! Evaluates the cost function for given decision variables x and parameters p. @param x The values for the decision variables. @param p The values for the parameters. @return The cost that results from x and p.

(
        self, x: Dict[str, ArrayType], p: Dict[str, ArrayType]
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

dict2vecMethod · 0.80
fMethod · 0.80

Tested by

no test coverage detected