util
Utility functions and classes for the MindtPy solver.
Classes
|
A new persistent interface to Gurobi. |
Functions
|
Add orthogonality cuts. |
|
This function will add bounds for variables in nonlinear constraints if they are not bounded. |
|
Generates a map of jacobians for the variables in the model. |
|
Copy variable values from one list to another. |
Copy variable values from the solution pool to another list. |
|
|
Epigraph reformulation. |
|
Calculates the euclidean norm between the discrete variables in the MIP and NLP models. |
|
The function generates the second-order Taylor approximation of the Lagrangean. |
|
This function generates constraint (PF-OA main problem) for minimum Norm1 distance to setpoint_model. |
|
This function generates objective (PF-OA main problem) for minimum Norm1 distance to setpoint_model. |
|
This function generates objective (FP-NLP subproblem) for minimum euclidean distance to setpoint_model. |
|
Generate the norm constraint for the FP-NLP subproblem. |
|
This function generates objective (PF-OA main problem) for minimum Norm Infinity distance to setpoint_model. |
|
Extract the value of integer variables from the provided model. |
|
Adds feasibility slack variables according to config.feasibility_norm (given an infeasible problem). |
Set constraint violation tolerance for solvers. |
|
|
Set mipgap for subsolvers. |
|
This function tries to set a valid value for variable with the given input. |
|
Record problem statistics for original model. |
|
Updates the time limit for subsolvers. |