pysolver_view.optimization.evaluation module#

Per-run optimization evaluation and backend callback contracts.

class pysolver_view.optimization.evaluation.BackendProblem(wrapped_problem)[source]#

Bases: object

Generic backend callbacks for objective, constraints, bounds and derivatives. This class uses anonymous functions (lambda) to prevent issues with deep copying complex objects, (like Coolprop’s AbstractState objects) which are not deep-copiable.

class pysolver_view.optimization.evaluation.OptimizationEvaluation(problem, *, library, options, derivative_method, derivative_abs_step, fitness)[source]#

Bases: object

Own model work, point caches and derivative accounting for one solve.

evaluate_hessians(x)[source]#

Evaluate physical component Hessians in solver coordinates, without probes.

final_constraint_metadata(x)[source]#

Return detached final metadata without evaluating the model.

hessian_structure(dimension)[source]#

Validate and cache a shared lower-triangle component-Hessian pattern.

record_accepted_metadata(x)[source]#

Detach named metadata only when it belongs to the accepted point.