Clear Filters
Clear Filters

how ca jump in another line in matlab m-file?

1 view (last 30 days)
i have a cost function for my ICA. in my cost function 2 optimized values of 2 parameters have to find.parameters are a and b. the constraint of a is [1 50] and for b is [1 30]. the optimized value of b must be less than a. so i added i line in my cost function like below: if a<b jump to first line of cost function end how can i write the jump statement?

Accepted Answer

Walter Roberson
Walter Roberson on 14 May 2015
This is really not recommended. You should instead code something like,
while true
... do some work
if a < b
continue; %restart the loop
end
... do more work
break; %exit the loop
end

More Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!