필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

algebraic loop simulink error؟؟

조회 수: 1 (최근 30일)
mado
mado 2012년 12월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
when using Ipold= Ip in this embedded function code
function [e,Pm,Ip] = new(In,Vn) persistent Ipold ; if isempty(Ipold) Ipold=2; %initialized only once in the beginning end K1=2; K2=-.195; Pn= Vn*In Pm=100*In e= Pn-Pm if Pn>Pm Ip = Ipold+K1 *e else Ip = Ipold+K2 *e end Ipold=Ip
error message appeared "Trouble solving algebraic loop containing 'chee_pv/pv6/Algebraic Constraint/Initial Guess' at time 0. Stopping simulation. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
  댓글 수: 1
mado
mado 2012년 12월 3일
any help

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by