.I want to use two different cost in objective function depending on whether Pbattups is positive or negative.I have tried to use nested function as below:
Also i tried to use this condition as a constraint ,
Both case i am getting error.
Also if i change the lower bounds or upperbounds of Pbattups to 0,it doesnt change in output.
Please look into the attached file and advice if anything can be done on this file.so that i can seperately input cost to the objective function.