Hi All,
I want to create a user interface or page where i can control some of the constraints to toggle and run the model.
e.g. Lets say we have 10 set of constraints and I want to run the model with 8 currently while rest 2 I want to disable for the run. This needs to be dynamic
Is there any documentation available for the same or any example.
Regards
Ankit Bhagat
Page 1 / 1
You can declare subsets of the predeclared sets AllVariables and AllConstraints and use them in the math program declaration to control which constraints and variables are considered for the math program. See this article.
Note that variables with definitions will be considered as constraints as well.
You can use a binary parameter indexed over AllConstraints (IndexConstraints) and use this parameter to control which constraints are selected for the final math program.
ModelConstraints will now be {IndexConstraints | bpSelectConstraint(IndexConstraints) } and your end users will be able to change the value of bpSelectConstraint(IndexConstraints) from the UI
Reply
Sign up
Already have an account? Login
Please use your business or academic e-mail address to register
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.