How to add two values of a variable in a model given a constraint on that variable?

How do I add two values for a variable that looks like this:
Si=S if n=j
Si=M if n not equal to j
Thanks in advance.

Answers (0)

This question is closed.

Asked:

NMK
on 20 Jul 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!