I want to write a code in the MainExecution section.
I want to consider in the first cycle a constraint, but I wan't to consider this constraint in the second cycle.
How can I write this?
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 username or e-mail address. We'll send you an e-mail with instructions to reset your password.
how should be the pareto curve if one function is minimized and another function is maximized?
The parameter must go in the index domain condition of the constraint.
thanks for your replay. However, how can I relate this parameter to the constraint?
Please review below article, it shows you how to select/deselect multiple variables and constraints from a math program.
For your case, it might be easiest to declare a parameter with Initial data as 1. Say, pConstraintActive.
In the Index domain of the constraint you want to use in cycle 1 and not use in Cycle 2, include this parameter.
This will make the constraint active only if pConstraintActive has a nonzero value.
Now, your procedure will be.
Note that you will need to store the results between two subsequent runs so that you don't lose the results from the first solve run when you run the solve statement the second time.
I have this error in my code:
The set "Integers" does not denote a subset of the set "e_set".
How can I solve it?