Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB6 expression too complex

VB6 expression too complex

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aprx
    wrote on last edited by
    #1

    VB6 says the following expression is too complex to be computed (provided by a genetic program): (0.187385 +(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-0.647353+(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-5.2078)) +(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) +oDP3*(-0.0286061+0.00372593*oDP3)))*(-5.25864+(0.0531293 +oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))*(37.8453+-71.5963*(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))+-136.292*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))) + (0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(34.1411+55.7764*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))))) It contains several common bracketed sub expressions that could be simplified. Is there any code to simplify this expression and compute it ? Any suggestions? aprx

    D 1 Reply Last reply
    0
    • A aprx

      VB6 says the following expression is too complex to be computed (provided by a genetic program): (0.187385 +(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-0.647353+(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(-5.2078)) +(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) +oDP3*(-0.0286061+0.00372593*oDP3)))*(-5.25864+(0.0531293 +oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))*(37.8453+-71.5963*(0.0531293 + oDP3*(0.260794+oDP3*(-0.0914714+0.00960239*oDP3)) +oOPT*(+oOPT*(+0.000904296*oDP3) + oDP3*(-0.0286061+0.00372593*oDP3)))+-136.292*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))) + (0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) + oN1*(-0.361811+-0.34512*oN1)))*(34.1411+55.7764*(0.149214 +oN1*(2.0092+oN1*(5.22783+1.9466*oN1)) + oReu*(-0.0449582+oReu*(0.00420568+-0.000105206*oReu+0.0137505*oN1) +oN1*(-0.361811+-0.34512*oN1)))))) It contains several common bracketed sub expressions that could be simplified. Is there any code to simplify this expression and compute it ? Any suggestions? aprx

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      :omg: And you needed VB6 to tell you this? :-D How are you getting this expression into your VB6 app? Are you cutting and pasting it directly into your code or are you sending the expression to something like VBScript to be evaluated? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      A 1 Reply Last reply
      0
      • D Dave Kreskowiak

        :omg: And you needed VB6 to tell you this? :-D How are you getting this expression into your VB6 app? Are you cutting and pasting it directly into your code or are you sending the expression to something like VBScript to be evaluated? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        A Offline
        A Offline
        aprx
        wrote on last edited by
        #3

        Hi! I got this expression from a genetic package, then copied/pasted it in my VB written application. It usually works but this time the expression is too large. aprx

        D 1 Reply Last reply
        0
        • A aprx

          Hi! I got this expression from a genetic package, then copied/pasted it in my VB written application. It usually works but this time the expression is too large. aprx

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          aprx wrote: then copied/pasted it in my VB written application. Ewww... Your going to have to simplify it by hand, before you paste it in. I suppose you could add expression evaluation support to your app, but that would be a massive undertaking almost as bad as rewriting the genetic package into your VB6 app directly. There are libraries out there that could probably do this, but you'll have to watch out for their capabilities because these libraries will also have limits on how complex the expression can be. Yahoo search results for "vb6 expression evaluation[^] RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups