How can i use binary variables for if else condition in problem based MILP optimization problem

20 views (last 30 days)
I have sent query before about inlcuding conditional statement in objective function, i understand that it is not possible.(
i have two costs to include in objective function depending on the sign of power (whether positive or not),
i have checked the example,, but i am confused how i can use yhe binary variable to indicate the two dfferent cost to use in objective function.
Please advice

Answers (0)


Find more on Linear Programming and Mixed-Integer Linear Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by