Interface

CAS (Viya)

CASMediator(caller, cas_session)

Handles the connection between sasoptpy and the SAS Viya (CAS) server

Model

CASMediator.solve(self, \*\*kwargs)

Solve action for Model objects

CASMediator.tune(self, \*\*kwargs)

Wrapper for the MILP tuner

CASMediator.tune_problem(self, \*\*kwargs)

Calls optimization.tuner CAS action to finds out the ideal configuration

CASMediator.solve_with_mps(self, \*\*kwargs)

Submits the problem in MPS (DataFrame) format, supported by old versions

CASMediator.solve_with_optmodel(self, \*\*kwargs)

Submits the problem in OPTMODEL format

CASMediator.parse_cas_solution(self)

Performs post-solve operations

CASMediator.parse_cas_table(self, table)

Converts requested swat.cas.table.CASTable objects to swat.dataframe.SASDataFrame

CASMediator.set_variable_values(self, solution)

Performs post-solve assignment of variable values

CASMediator.set_constraint_values(self, solution)

Performs post-solve assignment of constraint values

CASMediator.set_model_objective_value(self)

Performs post-solve assignment of objective values

CASMediator.set_variable_init_values(self)

Performs post-solve assignment of variable initial values

CASMediator.upload_user_blocks(self)

Uploads user-defined decomposition blocks to the CAS server

CASMediator.upload_model(self[, name, …])

Converts internal model to MPS table and upload to CAS session

Workspace

CASMediator.submit(self, \*\*kwargs)

Submit action for custom input and sasoptpy.Workspace objects

CASMediator.submit_optmodel_code(self, …)

Converts caller into OPTMODEL code and submits using optimization.runOptmodel action

CASMediator.parse_cas_workspace_response(self)

Parses results of workspace submission

CASMediator.set_workspace_variable_values(…)

Performs post-solve assignment of sasoptpy.Workspace variable values

SAS

SASMediator(caller, sas_session)

Handles the connection between sasoptpy and SAS instance

Model

SASMediator.solve(self, \*\*kwargs)

Solve action for Model objects

SASMediator.solve_with_mps(self, \*\*kwargs)

Submits the problem in MPS (DataFrame) format, supported by old versions

SASMediator.solve_with_optmodel(self, \*\*kwargs)

Submits the problem in OPTMODEL format

SASMediator.parse_sas_mps_solution(self)

Parses MPS solution after solve and returns solution

SASMediator.parse_sas_solution(self)

Performs post-solve operations

SASMediator.parse_sas_table(self, table_name)

Converts requested table name into pandas.DataFrame

SASMediator.convert_to_original(self, table)

Converts variable names to their original format if a placeholder gets used

SASMediator.perform_postsolve_operations(self)

Performs post-solve operations for proper output display

Workspace

SASMediator.submit(self, \*\*kwargs)

Submit action for custom input and sasoptpy.Workspace objects

SASMediator.submit_optmodel_code(self, …)

Submits given sasoptpy.Workspace object in OPTMODEL format

SASMediator.parse_sas_workspace_response(self)

Parses results of workspace submission

SASMediator.set_workspace_variable_values(…)

Performs post-solve assignment of sasoptpy.Workspace variable values